mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-28 07:46:55 +00:00
Fixing some grid spacing issues. (Bug 10754537, 10754538)
- Ensuring app names don't run into each other in folders and on the workspace - Ensuring that app names are aligned with folder names Change-Id: Ie8d546eacd52005778d81c46011c1c84bc24118c
This commit is contained in:
@@ -137,7 +137,8 @@ public class ShortcutAndWidgetContainer extends ViewGroup {
|
||||
// Otherwise, center the icon
|
||||
int cHeight = mIsHotseatLayout ? grid.hotseatCellHeightPx : Math.min(getMeasuredHeight(), grid.cellHeightPx);
|
||||
int cellPaddingY = (int) Math.max(0, ((lp.height - cHeight) / 2f));
|
||||
child.setPadding(0, cellPaddingY, 0, 0);
|
||||
int cellPaddingX = (int) (grid.edgeMarginPx / 2f);
|
||||
child.setPadding(cellPaddingX, cellPaddingY, cellPaddingX, 0);
|
||||
}
|
||||
} else {
|
||||
lp.x = 0;
|
||||
|
||||
Reference in New Issue
Block a user