From 8d00811a6802b18fa2ad3f61ef005b15f777a6e9 Mon Sep 17 00:00:00 2001 From: richard Date: Thu, 7 Feb 2008 13:12:42 +0000 Subject: [PATCH] matchbox-keyboard: Stop the keyboard scaling beyond a sensible height on wide screens git-svn-id: https://svn.o-hand.com/repos/matchbox/trunk/matchbox-keyboard@1910 b067294f-1dea-0310-9683-c47a78595994 --- ChangeLog | 7 ++++++- src/matchbox-keyboard-ui.c | 4 ++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 9a47df8..4c6e04f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,4 +1,9 @@ -2007-11-14 Richard Purdie +2008-02-07 Richard Purdie + + * src/matchbox-keyboard-ui.c: + Stop the keyboard scaling beyond a sensible height on wide screens + +2007-11-14 Richard Purdie * configure.ac: Stop -L/lib being added to compiler commandline and breaking builds diff --git a/src/matchbox-keyboard-ui.c b/src/matchbox-keyboard-ui.c index a1afadc..0c4a98e 100644 --- a/src/matchbox-keyboard-ui.c +++ b/src/matchbox-keyboard-ui.c @@ -859,6 +859,10 @@ mb_kbd_ui_resize(MBKeyboardUI *ui, int width, int height) MARK(); + /* Don't scale beyond a sensible height on wide screens */ + if (height > (ui->dpy_height / 3)) + height = ui->dpy_height / 3; + width_diff = width - ui->base_alloc_width; height_diff = height - ui->base_alloc_height;