fix(ads): height property was not taking effect on client side ads #3284#3326
fix(ads): height property was not taking effect on client side ads #3284#3326ismena merged 3 commits intoshaka-project:masterfrom mariocynicys:patch-2
Conversation
| .absolute-position(); | ||
| } | ||
|
|
||
| .shaka-controls-container { |
There was a problem hiding this comment.
You need to string this with the server-side-container, so it's applied to both of them.
I think, it's done like this, but please double check with less.js documentation, I haven't worked on less for a while:
.shaka-server-side-ad-container .shaka-client-side-ad-container {
iframe {/* iframe settings here */}
}
There was a problem hiding this comment.
like this
.shaka-server-side-ad-container, .shaka-client-side-ad-container {
iframe {/* iframe settings here */}
}
however ,i found that the server-side-ad-container is a flex item inside shaka-controls so it never interfere with the shaka-bottom-controls, so no need to lift it up.
am i missing something?
There was a problem hiding this comment.
Man, I hate UI work((
Okay. I went and checked. We don't have an example of a skippable server-side ad, but looking at the way the IMA SDK adds their UI on the client side, they align it directly over the video element using position: absolute. So, essentially, they don't care whether the container is lifted, and we still have to lift the i-frame.
I think it's a safe assumption that they do this with server-side ads as well, so please lift the iframe on the server-side container too.
|
Looks good. Running the build bot now. |
|
Test Failure: |
|
Re: lint failure - try moving your change above the first |
build passing
|
All tests passed! |
|
Merging now. Thanks for contributing! |


Description
controls were covering the SkipAd button.
this commit lifts up the shaka-client-side-ad-container.
also the shaka-server-side-ad-container was overflowing outside shaka-controls-container, now its shrinkable.
refer to #3284
Type of change
not work as expected)
Checklist:
./build/all.pyand the build passes./build/test.pyand all tests pass