mirror of
https://github.com/keymanapp/keyman.git
synced 2026-10-12 08:57:30 +00:00
fix(web): stopgap for em scaling issue for doc kbds
This commit is contained in:
parent
4e9bf479f4
commit
8a5fd860e1
1 changed files with 6 additions and 1 deletions
|
|
@ -1723,7 +1723,12 @@ namespace com.keyman.osk {
|
|||
} else {
|
||||
let emSizeStr = getComputedStyle(document.body).fontSize;
|
||||
let emSize = util.getFontSizeStyle(emSizeStr).val;
|
||||
let emScale = util.getFontSizeStyle(keyman.osk._Box).val;
|
||||
var emScale = 1;
|
||||
if(!this.isStatic) {
|
||||
// Reading this requires the OSK to be active, so we filter out
|
||||
// BuildVisualKeyboard calls here.
|
||||
emScale = util.getFontSizeStyle(keyman.osk._Box).val;
|
||||
}
|
||||
return emSize * emScale;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue