Jump to content

Top Spotlight buttons/dots misplaced on older WebView (Chrome 66)


Recommended Posts

Chesyre
Posted

Hi,

The Play / Info / More buttons and the carousel dots are not shown at the bottom of the Spotlight banner. They appear at the bottom of the whole home section list, on top of "Continue Watching". Because Play gets autofocus on load, the view scrolls down to it and the top of the banner (logo/title) is cut off. Pressing Up scrolls back to the top: the banner then looks fine, but the buttons are not under it.

Device: Formovie (Fengmi) X5 projector, Android 9, system WebView 66.0.3359.158
App: Emby for Android 3.5.78 (UI core 26.0.47), TV layout, Spotlight as the first home section (Emby Server 4.10+)

There are no JS errors in the console.

Cause
`.emby-carousel` is `position:absolute; bottom:27vh !important` (card_tv3.css). It relies on `.verticalSection-cards { contain: layout style }` to be its containing block. Chrome 66 parses `contain`, but layout containment does not create a containing block for absolutely positioned descendants. I checked this on the device with a minimal test page. As a result, the carousel is positioned against an outer ancestor instead of the section.

Suggested fix

.topSpotlightSection { position: relative; }


Modern engines already use the section as the containing block, so this changes nothing for them.

image.thumb.png.e0409f8ca7e205a69be41f9ae18180d1.png

image.thumb.png.09bcf6691ff239edb293c059a0f87106.png

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...