mirror of
https://github.com/keymanapp/keyman.git
synced 2026-08-11 19:35:32 +00:00
Merge pull request #5075 from keymanapp/fix/web/popup-key-positioning
fix(web): position popups correctly in landscape mode on Android and during Chrome emulation
This commit is contained in:
commit
2c4ce9c687
1 changed files with 2 additions and 2 deletions
|
|
@ -1789,8 +1789,8 @@ namespace com.keyman.osk {
|
|||
|
||||
// And correct its position with respect to that element
|
||||
ss=subKeys.style;
|
||||
var x=dom.Utils.getAbsoluteX(e)+0.5*(e.offsetWidth-subKeys.offsetWidth), y,
|
||||
xMax=(util.landscapeView()?screen.height:screen.width)-subKeys.offsetWidth;
|
||||
var x = dom.Utils.getAbsoluteX(e)+0.5*(e.offsetWidth-subKeys.offsetWidth);
|
||||
var xMax = keyman.osk.getWidth() - subKeys.offsetWidth;
|
||||
|
||||
if(x > xMax) {
|
||||
x=xMax;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue