Ticket #889 (closed bug: fixed)
Strange timeslider glitch on startup
| Reported by: | jeroen | Owned by: | zach |
|---|---|---|---|
| Priority: | Milestone: | HTML5 beta | |
| Component: | Keywords: | ||
| Cc: | Forum thread: |
Description
When starting a video, there's a strange glitch in both the timeSliderBuffer and timeSliderProgress. These images are shown in their original dimensions for half a second or so, before they are actually scaled to the appropriate values.
Looks like they are either shown before the first event has arrived, or the player (code, css) doesn't want to set their widths to 0.
Change History
Note: See
TracTickets for help on using
tickets.

The resizeHandler is called on startup, and unfortunately, wasn't sending along relevant data. This meant that the code that calculated the widths tried to set element widths to NaN, which (fortunately?) set them to their default size. I added a default size (0px) for the cases where the calculations returned NaN.
Fixed in [989]