diff --git a/web/source/osk/activeLayout.ts b/web/source/osk/activeLayout.ts index 4193dcc0cf..b9125bc730 100644 --- a/web/source/osk/activeLayout.ts +++ b/web/source/osk/activeLayout.ts @@ -47,11 +47,8 @@ namespace com.keyman.osk { } } - // Calculate actual key widths by summing defined widths and scaling each key to %, - // adjusting the width of the last key to make the total exactly 100% + // Calculate percentage-based scalings by summing defined widths and scaling each key to %. // Save each percentage key width as a separate member (do *not* overwrite layout specified width!) - // NB: the 'percent' suffix is historical, units are percent on desktop devices, but pixels on touch devices - // All key widths and paddings are rounded for uniformity var keyPercent: number, padPercent: number, totalPercent=0; for(let j=0; j