Skip to content
Commit 1213f386 authored by Sammie Quon's avatar Sammie Quon Committed by Chromium LUCI CQ
Browse files

pine: Fix background of two overflow apps case

The outer box layout preferred size is calculated based on its children.
In the two overflow app case, on children has 0 preferred size so the
layout manager calculated 42x22. We add padding such that if there is
one inner box layout, the preferred size is 42x42.

Also modified some code so we don't create the inner bottom box layout
if it is not needed (2 overflow apps case).

Test: manual
Test: manually printed preferred sizes for 2 & 4 overflow apps
Change-Id: I333fbf1ebfe9303cd26095bb21f600f96f92af4d
Fixed: b:331215843
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5407255


Reviewed-by: default avatarXiaodan Zhu <zxdan@chromium.org>
Commit-Queue: Sammie Quon <sammiequon@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1280938}
parent 4aafa7e2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment