lets not forget adding the side margin at position restoring after collision

This commit is contained in:
tibbi 2022-10-04 12:41:06 +02:00
parent 022dc65770
commit 0d37b4c56f
1 changed files with 1 additions and 1 deletions

View File

@ -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