mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-28 07:46:55 +00:00
Reduce margin for DropTargetBar to avoid buttons to be truncated.
Bug: 187036287 Test: Tested manually by QA testing team on 4X5 grid size Change-Id: Iaa4cd3e464ccf50427a5aa96d97093601e1d2948
This commit is contained in:
@@ -105,7 +105,8 @@ public class DropTargetBar extends FrameLayout
|
||||
/ (2 * (grid.inv.numColumns + 1)))
|
||||
+ grid.edgeMarginPx;
|
||||
} else {
|
||||
gap = grid.desiredWorkspaceLeftRightMarginPx - grid.inv.defaultWidgetPadding.right;
|
||||
gap = getContext().getResources()
|
||||
.getDimensionPixelSize(R.dimen.drop_target_bar_margin_horizontal);
|
||||
}
|
||||
lp.width = grid.availableWidthPx - 2 * gap;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user