mirror of
https://github.com/SimpleMobileTools/Simple-Launcher.git
synced 2025-02-16 19:40:41 +01:00
lets not forget adding the side margin at position restoring after collision
This commit is contained in:
parent
022dc65770
commit
0d37b4c56f
@ -200,7 +200,7 @@ class MyAppWidgetResizeFrame(context: Context, attrs: AttributeSet, defStyle: In
|
||||
frameRect.left = wantedLeft + sideMargins.left
|
||||
cellsRect.left = wantedLeftCellX
|
||||
} else {
|
||||
frameRect.left = cellsRect.left * cellWidth
|
||||
frameRect.left = cellsRect.left * cellWidth + sideMargins.left
|
||||
}
|
||||
}
|
||||
DRAGGING_TOP -> frameRect.top = roundToClosestMultiplyOfNumber(frameRect.top - sideMargins.top, cellHeight) + sideMargins.top
|
||||
|
Loading…
x
Reference in New Issue
Block a user