diff --git a/js/ui/keyboard.js b/js/ui/keyboard.js index 7df7ef16d..62df5922f 100644 --- a/js/ui/keyboard.js +++ b/js/ui/keyboard.js @@ -1608,7 +1608,8 @@ class Keyboard extends St.BoxLayout { * we allow the OSK being smaller than 1/3rd of the monitor height * there. */ - this.height = Math.min(maxHeight, this.get_preferred_height(monitor.width)); + const [, natHeight] = this.get_preferred_height(monitor.width); + this.height = Math.min(maxHeight, natHeight); } }