From e457b85697f04a9baee4fd3fec80914b704bc57e Mon Sep 17 00:00:00 2001 From: jahorton Date: Thu, 14 Jan 2021 15:43:19 +0700 Subject: [PATCH] fix(web): uses line-height to v-center oversized key text --- web/source/osk/visualKeyboard.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/web/source/osk/visualKeyboard.ts b/web/source/osk/visualKeyboard.ts index 147b98fc4a..7957c6a142 100644 --- a/web/source/osk/visualKeyboard.ts +++ b/web/source/osk/visualKeyboard.ts @@ -380,7 +380,9 @@ namespace com.keyman.osk { if(!osk.isStatic) { ks.bottom=rowStyle.bottom; } - ks.height=rowStyle.height; //must be specified in px for rest of layout to work correctly + ks.height=rowStyle.height; // must be specified in px for rest of layout to work correctly + ks.lineHeight=rowStyle.height; // helps ensure that text is vertically-centered, even if overflowing + // due to use of oversized font scales // Set distinct phone and tablet button position properties btn.style.left=ks.left;