mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-19 18:58:19 +00:00
Factor in CellLayout padding in cell size calculation.
Bug: 63753505 Change-Id: I221dfb1d486110f8de3994085d917c12f82bcd0f
This commit is contained in:
@@ -436,7 +436,8 @@ public class DeviceProfile {
|
||||
// Since we are only concerned with the overall padding, layout direction does
|
||||
// not matter.
|
||||
Point padding = getTotalWorkspacePadding();
|
||||
result.x = calculateCellWidth(availableWidthPx - padding.x, inv.numColumns);
|
||||
int cellPadding = cellLayoutPaddingLeftRightPx * 2;
|
||||
result.x = calculateCellWidth(availableWidthPx - padding.x - cellPadding, inv.numColumns);
|
||||
result.y = calculateCellHeight(availableHeightPx - padding.y, inv.numRows);
|
||||
return result;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user