summaryrefslogtreecommitdiff
path: root/libs/input/PointerController.cpp
diff options
context:
space:
mode:
author Mady Mellor <madym@google.com> 2024-02-16 12:46:05 -0800
committer Mady Mellor <madym@google.com> 2024-02-16 16:29:00 -0800
commit97ae017e122023e4fac185ec296792af8d1863fd (patch)
tree73a1a8b4e71bba9a91ac26a5e91b48c7c175b7bb /libs/input/PointerController.cpp
parent6b8d8a46ca373838b02eb31f6671bbed960fdf9c (diff)
Fix an issue where insets were double subtracted when sizing taskview
getExpandedViewContainerPadding already accounts for the insets when calculating the padding around the bubble expanded view. mPositionRect is the rect that accounts for the insets, so when using it in combo with getExpandedViewContainerPadding, we'd subtract any insets twice. mScreenRect does not account for the insets, so we should use that here instead. Test: m CtsVerifier and ran through bubble test cases Test: atest BubblePositionerTest Test: manual - look at expanded bubbles in portrait / landscape on folded / unfolded device (with and without insets), and on large screen tablet. Bug: 318308404 Bug: 322430409 Change-Id: Id96e0564321d9ba1ed554a2ca6050adf09021ba2
Diffstat (limited to 'libs/input/PointerController.cpp')
0 files changed, 0 insertions, 0 deletions