summaryrefslogtreecommitdiff
path: root/tools/aapt2/diff/Diff.cpp
diff options
context:
space:
mode:
authorRobert Carr <racarr@google.com>2016-04-12 14:33:18 -0700
committerRobert Carr <racarr@google.com>2016-04-13 11:55:45 -0700
commitf6e801da1a45b2458679e20f5e6061442a434e1b (patch)
tree6e981f2e9988ab9e9d2adced43b95f35c00048d8 /tools/aapt2/diff/Diff.cpp
parent4b92594857ce52f96252f43c776f3ed31f0ebdfb (diff)
PopupWindow. Don't use -1 width/height for calculations.
In findDropDownPosition it's entirely possible for width/height to be -1. If this is so, and the popup is anchored to the right, we could fail to see that it is offscreen (since we think the width is -1), and so fail to do our position adjustment to move it to the left. I think this was previously covered up by window manager bugs with child windows that requested coordinates outside of their parent frame. To fix this, we ontinue to pass the same value to the window manager, but use the width/height we expect to receive for local layout calculations. Bug: 28085451 Change-Id: Ia04ca3fcd17ad8819615b5ff42f7923462ce4b42
Diffstat (limited to 'tools/aapt2/diff/Diff.cpp')
0 files changed, 0 insertions, 0 deletions