mirror of
https://github.com/SimpleMobileTools/Simple-Launcher.git
synced 2025-06-05 21:59:15 +02:00
lets not forget adding the side margin at position restoring after collision
This commit is contained in:
@ -200,7 +200,7 @@ class MyAppWidgetResizeFrame(context: Context, attrs: AttributeSet, defStyle: In
|
|||||||
frameRect.left = wantedLeft + sideMargins.left
|
frameRect.left = wantedLeft + sideMargins.left
|
||||||
cellsRect.left = wantedLeftCellX
|
cellsRect.left = wantedLeftCellX
|
||||||
} else {
|
} 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
|
DRAGGING_TOP -> frameRect.top = roundToClosestMultiplyOfNumber(frameRect.top - sideMargins.top, cellHeight) + sideMargins.top
|
||||||
|
Reference in New Issue
Block a user