Skip to content
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

Correct adaptive layout selectors to match their intent #2923

Closed
wants to merge 1 commit into from

Conversation

hartman
Copy link
Contributor

@hartman hartman commented Dec 16, 2015

There were a few problems
1: The fullscreen button was hidden in vjs-layout-x-small, unlike its
comments claimed and not matching with tiny, where it is visible.
2: The vjs-captions-control was hidden twice for tiny and x-small
3: The vjs-captions-control was hidden in small, even though the
intent was (per comments) for it to be visible
4: The vjs-volume-menu-button was present on x-small, because it was
incorrectly specified as .vjs-volume-button

All of this was partly because the lines for each layout were
different and thus 'hard' to compare between the layouts. I have now
split them in 4 groups/lines. Time controls, rate/progress, volume,
metadata. This will hopefully prevent similar problems in the future.

There were a few problems
1: The fullscreen button was hidden in vjs-layout-x-small, unlike its
comments claimed and not matching with tiny, where it is visible.
2: The vjs-captions-control was hidden twice for tiny and x-small
3: The vjs-captions-control was hidden in small, even though the
intent was (per comments) for it to be visible
4: The vjs-volume-menu-button was present on x-small, because it was
incorrectly specified as .vjs-volume-button

All of this was partly because the lines for each layout were
different and thus 'hard' to compare between the layouts. I have now
split them in 4 groups/lines. Time controls, rate/progress, volume,
metadata. This will hopefully prevent similar problems in the future.
hartman added a commit to hartman/videojs-responsive-layout that referenced this pull request Dec 17, 2015
This fixes:
* an infinite loop (#6)
* speeds up the settling of layout if multiple steps are required (#5)
* only using default calculations when not using native controls
* some of videojs/video.js#2923 in case users run older versions of
  video.js
@hartman
Copy link
Contributor Author

hartman commented Jan 28, 2016

ping.. anyone want to look at this ?

@mmcc
Copy link
Member

mmcc commented Jan 28, 2016

❤️❤️ the reorganization. Much cleaner.

I would remove fullscreen in tiny, that was almost certainly an oversight. Otherwise, looks good to me! 👍

@hartman
Copy link
Contributor Author

hartman commented Jan 28, 2016

@mmcc actually, the comments on line 3 (above the definition of tiny), indicate the fullscreen button in tiny was intentional. Could be changed of course.

@mmcc
Copy link
Member

mmcc commented Jan 28, 2016

That it does. I could have sworn I meant for tiny to just be the play button, but two buttons is probably tiny enough :)

@mmcc
Copy link
Member

mmcc commented Jan 28, 2016

lgtm :shipit:

@gkatsev
Copy link
Member

gkatsev commented Jan 28, 2016

LGTM

@gkatsev gkatsev closed this in d9cad36 Feb 2, 2016
@hartman hartman deleted the adaptive branch May 10, 2016 11:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants