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…
Reference in New Issue