mirror of
https://github.com/keymanapp/keyman.git
synced 2026-08-11 19:35:32 +00:00
fix(web): touch-layout fontsize property use
This commit is contained in:
parent
c494581117
commit
032f618d33
1 changed files with 3 additions and 5 deletions
|
|
@ -1232,17 +1232,15 @@ export default class VisualKeyboard extends EventEmitter<EventMap> implements Ke
|
|||
paddedHeight = this.computedAdjustedOskHeight(this.height);
|
||||
}
|
||||
|
||||
let b = this.layerGroup.element as HTMLElement;
|
||||
let gs = this.kbdDiv.style;
|
||||
let bs = b.style;
|
||||
if (this.usesFixedHeightScaling && this.height) {
|
||||
// Sets the layer group to the correct height.
|
||||
gs.height = gs.maxHeight = this.height + 'px';
|
||||
}
|
||||
|
||||
// The font-scaling applied on the layer group.
|
||||
gs.fontSize = this.fontSize.styleString;
|
||||
bs.fontSize = ParsedLengthStyle.forScalar(fs).styleString;
|
||||
// The font-scaling applied by default for this instance on its root element.
|
||||
// Layer-group font-scaling is applied separately.
|
||||
gs.fontSize = this.fontSize.scaledBy(fs).styleString;
|
||||
|
||||
// Step 1: have the necessary conditions been met?
|
||||
const fixedSize = this.width && this.height;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue