Skip to content
Commit df46fd52 authored by Riddle Hsu's avatar Riddle Hsu
Browse files

Make child window inherit the scale of parent

The child window computes its layout in parent's frame.
If parent frame is scaled, the position and size of
child window is already based on parent. And the child
surface also has the same scale from parent surface.

This change makes mGlobalScale of child window to 1.
And use the unscaled containing frame display frame of
parent to apply gravity, so the child window can fit
in the scaled content of parent window.

Bug: 182362657
Test: atest WindowStateTests#testCompatOverrideScale

Change-Id: Ie8b9fabcfbccb63f54d51bdd55b23f835151202d
parent 9c1d0087
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment