Skip to content

Commit

Permalink
matchbox-keyboard: Stop the keyboard scaling beyond a sensible height…
Browse files Browse the repository at this point in the history
… on wide screens

git-svn-id: https://svn.o-hand.com/repos/matchbox/trunk/matchbox-keyboard@1910 b067294f-1dea-0310-9683-c47a78595994
  • Loading branch information
richard committed Feb 7, 2008
1 parent 4cf2976 commit 8d00811
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
7 changes: 6 additions & 1 deletion ChangeLog
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
2007-11-14 Richard Purdie <[email protected]>
2008-02-07 Richard Purdie <[email protected]>

* src/matchbox-keyboard-ui.c:
Stop the keyboard scaling beyond a sensible height on wide screens

2007-11-14 Richard Purdie <[email protected]>

* configure.ac:
Stop -L/lib being added to compiler commandline and breaking builds
Expand Down
4 changes: 4 additions & 0 deletions src/matchbox-keyboard-ui.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 8d00811

Please sign in to comment.