mirror of
https://github.com/keymanapp/keyman.git
synced 2026-09-24 00:27:40 +00:00
fix(web): uses line-height to v-center oversized key text
This commit is contained in:
parent
c826857f09
commit
e457b85697
1 changed files with 3 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue