Skip to content

Commit 002d701

Browse files
bcdariusgkatsev
authored andcommitted
fix: menu sizing when using longer caption labels (videojs#5228)
Currently, if longer captions labels are used the SubsCaps menu gets all messed up in IE11/Edge. This occurs due to the menu size is not adjusted correctly not taking into consideration the CC icon. This, as a result, causes the captions items not to fit in the menu and because they end up too wide and the menu has overflow: auto style, the horizontal scrollbars show up and cause the menu not to render correctly. Therefore, don't position the caption label absolutely. Fix videojs#4758.
1 parent 59ab323 commit 002d701

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/css/components/_subs-caps.scss

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@
1515
}
1616

1717
.video-js .vjs-subs-caps-button + .vjs-menu .vjs-captions-menu-item .vjs-menu-item-text .vjs-icon-placeholder {
18-
position: absolute;
18+
vertical-align: middle;
19+
display: inline-block;
20+
margin-bottom: -0.1em;
1921
}
2022
.video-js .vjs-subs-caps-button + .vjs-menu .vjs-captions-menu-item .vjs-menu-item-text .vjs-icon-placeholder:before {
2123
font-family: VideoJS;

0 commit comments

Comments
 (0)