zazuko / zack-search

A highly adaptable HTML5 only component that enables interactive access and search data from a SPARQL endpoint.
10 stars 1 forks source link

window - resize needs to re-render the results also (to update the timeticks) #13

Open l00mi opened 7 years ago

l00mi commented 7 years ago

From @l00mi on September 7, 2016 8:56

Copied from original issue: zazuko/swiss-archival-institutions#27

l00mi commented 7 years ago

From @bergos on September 8, 2016 22:3

Maybe the timeline should have a resize event and the timeticks are updated based on that event. The timeline could forward informations about the timline position and dates. That would allow changes to the timeline without changing the timeticks code. The timeticks could use a data-timestamp attribute, which is used to set the position.

bergos commented 7 years ago

With this patch it's possible to access the resize event using renderer.app.events.size in the .init function.