mirror of
https://github.com/keymanapp/keyman.git
synced 2026-09-21 23:27:39 +00:00
Fix exception when setting banner height 0
This commit is contained in:
parent
3411462961
commit
4f1f1dcb4e
1 changed files with 1 additions and 1 deletions
|
|
@ -43,8 +43,8 @@
|
|||
|
||||
// Update the KMW banner height
|
||||
function setBannerHeight(h) {
|
||||
var kmw=com.keyman.singleton;
|
||||
if (h > 0) {
|
||||
var kmw=com.keyman.singleton;
|
||||
var osk = kmw.osk;
|
||||
osk.banner.height = Math.ceil(h / window.devicePixelRatio);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue