mirror of
https://github.com/Helium314/HeliBoard.git
synced 2025-06-10 16:39:35 +00:00
consider padding when adding keyboard split
fixes GH-1520
This commit is contained in:
parent
da62457c90
commit
011bc96ec9
1 changed files with 1 additions and 1 deletions
|
@ -176,7 +176,7 @@ open class KeyboardBuilder<KP : KeyboardParams>(protected val mContext: Context,
|
|||
val relativeWidthSumNew = row.sumOf { it.mWidth }
|
||||
val widthFactor = relativeWidthSum / relativeWidthSumNew
|
||||
// re-calculate absolute sizes and positions
|
||||
var currentX = 0f
|
||||
var currentX = mParams.mLeftPadding.toFloat()
|
||||
row.forEach {
|
||||
it.mWidth *= widthFactor
|
||||
it.setAbsoluteDimensions(currentX, y)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue