Fix exception when setting banner height 0

This commit is contained in:
Darcy Wong 2019-05-17 09:26:27 +07:00
parent 3411462961
commit 4f1f1dcb4e

View file

@ -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);
}