Commit 04787860 authored by Hiroyuki Ikezoe's avatar Hiroyuki Ikezoe
Browse files

Bug 1674104 - Reset the vertical clipping value to zero whenever we change the...

Bug 1674104 - Reset the vertical clipping value to zero whenever we change the dynamic toolbar max height. r=botond, a=RyanVM

So that we will not mis-align position:fixed elements with the old stale
clipping value.

Differential Revision: https://phabricator.services.mozilla.com/D100862
parent 813cf2f9
......@@ -171,6 +171,14 @@ public class GeckoView extends FrameLayout {
public void setDynamicToolbarMaxHeight(final int height) {
mDynamicToolbarMaxHeight = height;
// Reset the vertical clipping value to zero whenever we change
// the dynamic toolbar __max__ height so that it can be properly
// propagated to both the main thread and the compositor thread,
// thus we will be able to reset the __current__ toolbar height
// on the both threads whatever the __current__ toolbar height is.
setVerticalClipping(0);
if (mDisplay != null) {
mDisplay.setDynamicToolbarMaxHeight(height);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment