-
Notifications
You must be signed in to change notification settings - Fork 403
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TimeLine - Display issues at certain screen sizes and 'infinite loop in redraw?' errors in console #9828
Comments
The issue stems from the library itself and is correctly logged. It has been reported here, here and here. It has been fixed in this PR. Notice that the version of the fix is 6.3.1 and the library is different. We use this library as a runtime dependency, the version used is 4.21, then we leverage vis.Timeline for our Timeline plugin. It is the only plugin that depends on this library, which makes things slightly easier to fix. The library itself is deprecated and split into new repos as seen by this post. A valid course of action to fix this issue would be to swap our current dependency to https://github.com/visjs/vis-timeline, which is:
Introducing the fix would require further tests of the Timeline plugin in order to ensure that everything still works and potentially new behavior is accounted for. The bug occurs due to a border calculation of the dom elements that are produced. It can be triggered by simply zooming in and out on the browser as well as triggering resizing of the elements by different methods. It is therefore not restricted to smaller screen resolutions, as seen on the video below. 9828_repro.mp4. |
Changing vis to vis-timeline latest causes the following problems:
9828_crit.mp4
9828_layer_name_toggle.mp4
9828_scrolling_time_ranges.mp4
9828_toggle_layers_flicker.mp4
9828_time_range_shadow_box.mp4
9828_data_bar_disappear.mp4Running the functional tests produce a single test failure with the following exception:
|
Description
With a laptop-size screen, opening this map with a timeline, an errors appears in console.
The WARNING comes from the library we use to render the timeline, the issue does not happen only with the time intervals but also with the points time (Meteorite Landings layer)
recording_1.mp4
How to reproduce
-With a 1366x769 px screen or less, open this map
Expected Result
The timeline is always visible and no error appears in console
Current Result
The 'WARNING: infinite loop in redraw?' appears on console and the timeline disappears for a moment
Browser info
(use this site: https://www.whatsmybrowser.org/ for non expert users)Other useful information
The text was updated successfully, but these errors were encountered: