mirror of
https://github.com/keymanapp/keyman.git
synced 2026-09-25 17:17:43 +00:00
Merge pull request #422 from keymanapp/ios-keyboard-menu-size
Fix keyboard menu popup view width
This commit is contained in:
commit
5a5bc9cc54
2 changed files with 2 additions and 2 deletions
|
|
@ -85,7 +85,7 @@ class KeyboardMenuView: UIView, UITableViewDelegate, UITableViewDataSource, UIGe
|
|||
super.init(frame: mainFrame)
|
||||
|
||||
let screenWidth = UIScreen.main.bounds.width
|
||||
let maxWidth = CGFloat.maximum(getMaxWidth(), screenWidth)
|
||||
let maxWidth = CGFloat.minimum(getMaxWidth(), screenWidth)
|
||||
let baseHeight = keyFrame.size.height
|
||||
let containerWidth = maxWidth - strokeWidth * 2
|
||||
var containerHeight = CGFloat(tableList.count) * rowHeight
|
||||
|
|
|
|||
|
|
@ -198,7 +198,7 @@ class SubKeysView: UIView {
|
|||
}
|
||||
|
||||
if viewRight.rounded() == keyRight.rounded() || viewRight.rounded(.down) == keyRight.rounded(.down) {
|
||||
keyRight = viewRight > keyRight ? viewRight : keyRight
|
||||
keyRight = CGFloat.maximum(viewRight, keyRight)
|
||||
viewRight = keyRight
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue