latzt/mediaelement — comment on commit d40645529bd0996869ef2888ba48ecd38305599c
File:  line 0
By latzt:

Hi John,

due my non-disclosure agreement i can not post any theming code here. But i can explain it to you :)

The time rail expands to the remaining space, you said. As shown in the picture, the rail himself has absolute position and a fixed css width. In this case, many mejs-time-rails belongs to a single mejs-controls div. All rails have the same width and only the play/pause button and duration div are visible.

In past, this could only be done with hacking the mejs-core.

If you do:
- hiding most of the mejs-div's
- set css rail width to (n) px
- absolute position the play button

... you receive a broken interface. Thats my hack for :)

Am 26.10.2011 um 16:22 schrieb John Dyer:

> From the picture I can't really tell what's going on.
>
> If you absolutely position all the other elements (play, time, etc.), the time rail will just expand to the full width of the controls area minus any margins it has (see the included skins). So are you trying to absolutely position the rail as well?
>
> --
> Reply to this email directly or view it on GitHub:
> https://github.com/latzt/mediaelement/commit/d40645529bd0996869ef2888ba48ecd38305599c#commitcomment-676239