mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-01 00:06:47 +00:00
Fix incorrect offset in drag feedback, and other minor stuff.
- moved some dimens to -xlarge - enlarge AllApps so that it's not clipped
This commit is contained in:
@@ -764,7 +764,9 @@ public class CellLayout extends ViewGroup {
|
||||
final int countX = mCountX;
|
||||
final int countY = mCountY;
|
||||
|
||||
pointToCellRounded(originX, originY, result);
|
||||
// originX and originY give the top left of the cell, but pointToCellRounded
|
||||
// compares center-to-center, so pass in the middle coordinates
|
||||
pointToCellRounded(originX + (mCellWidth / 2), originY + (mCellHeight / 2), result);
|
||||
|
||||
// If the item isn't fully on this screen, snap to the edges
|
||||
int rightOverhang = result[0] + spanX - countX;
|
||||
|
||||
Reference in New Issue
Block a user