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:
Alina Zaidi committed 2021-07-01 09:50:46 +01:00
1 parent b31d55d960
commit 1b5efa3216
4 files changed
+5 -4

No files matched your search

+2 -1
View File
@@ -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;