From 9539093c42bc459aaa1a1053d0e31b03d0839824 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 5 May 2013 19:10:52 +0300 Subject: adjust char selection dialog for small screens. --- src/gui/widgets/characterviewnormal.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/gui/widgets/characterviewnormal.cpp') diff --git a/src/gui/widgets/characterviewnormal.cpp b/src/gui/widgets/characterviewnormal.cpp index f197ea343..11b630099 100644 --- a/src/gui/widgets/characterviewnormal.cpp +++ b/src/gui/widgets/characterviewnormal.cpp @@ -48,10 +48,7 @@ CharacterViewNormal::CharacterViewNormal(CharSelectDialog *const widget, } const CharacterDisplay *const firtChar = (*mCharacterEntries)[0]; setWidth(firtChar->getWidth() * 5 + mPadding * 2); - if (config.getIntValue("fontSize") > 16) - setHeight(250); - else - setHeight(220); + setHeight(210 + config.getIntValue("fontSize") * 2); } CharacterViewNormal::~CharacterViewNormal() -- cgit v1.2.3-60-g2f50