chore(web): cleans up intermediate new prop

This commit is contained in:
jahorton 2021-07-14 11:36:02 +07:00
parent 59a5d6cba0
commit 0992909831

View file

@ -32,12 +32,6 @@ namespace com.keyman.osk {
kbdDiv: HTMLDivElement;
styleSheet: HTMLStyleElement;
/**
* Denotes when the VisualKeyboard needs to recalculate its layout geometry and
* text sizes.
*/
private needsLayout: boolean = true;
/**
* The configured width for this VisualKeyboard. May be `undefined` or `null`
* to allow automatic width scaling.
@ -232,15 +226,9 @@ namespace com.keyman.osk {
}
this.refreshLayout();
} else {
this.needsLayout = true;
}
}
public setNeedsLayout(): void {
this.needsLayout = true;
}
public defaultDesktopFontSize(): number {
return this.height ? this.height / 8 : undefined;
}