Merge "Reduce margin for DropTargetBar to avoid buttons to be truncated." into sc-dev

This commit is contained in:
Alina Zaidi authored and Android (Google) Code Review committed 2021-07-01 11:10:26 +00:00
commit eefccccb19
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;