summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorIra Rice <irarice@gmail.com>2009-02-05 12:35:32 -0700
committerIra Rice <irarice@gmail.com>2009-02-05 12:35:32 -0700
commita05c3bbbae4fcb2fd353a9ba972e7caa7b8e566e (patch)
tree2df260b7cf8beca686d8f3e6ad27fc5dba9351d1 /src/gui
parent9146b4bff88d2622907b7e9bba618ad9b12da7ce (diff)
downloadmana-a05c3bbbae4fcb2fd353a9ba972e7caa7b8e566e.tar.gz
mana-a05c3bbbae4fcb2fd353a9ba972e7caa7b8e566e.tar.bz2
mana-a05c3bbbae4fcb2fd353a9ba972e7caa7b8e566e.tar.xz
mana-a05c3bbbae4fcb2fd353a9ba972e7caa7b8e566e.zip
Fixed the keyboard dialog list selection from cutting off before the
scrollbar. Signed-off-by: Ira Rice <irarice@gmail.com>
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/setup_colours.cpp1
-rw-r--r--src/gui/setup_keyboard.cpp3
2 files changed, 1 insertions, 3 deletions
diff --git a/src/gui/setup_colours.cpp b/src/gui/setup_colours.cpp
index 695c3f74..d0ab426a 100644
--- a/src/gui/setup_colours.cpp
+++ b/src/gui/setup_colours.cpp
@@ -47,7 +47,6 @@ Setup_Colours::Setup_Colours() :
mScroll = new ScrollArea(mColourBox);
mScroll->setHorizontalScrollPolicy(gcn::ScrollArea::SHOW_NEVER);
- mScroll->setWidth(90);
mRedLabel = new gcn::Label(_("Red: "));
diff --git a/src/gui/setup_keyboard.cpp b/src/gui/setup_keyboard.cpp
index 7ff2ea7f..6a4363fe 100644
--- a/src/gui/setup_keyboard.cpp
+++ b/src/gui/setup_keyboard.cpp
@@ -78,11 +78,10 @@ Setup_Keyboard::Setup_Keyboard():
refreshKeys();
- mKeyList->setDimension(gcn::Rectangle(0, 0, 185, 140));
mKeyList->addActionListener(this);
- mKeyList->setSelected(-1);
ScrollArea *scrollArea = new ScrollArea(mKeyList);
+ scrollArea->setHorizontalScrollPolicy(gcn::ScrollArea::SHOW_NEVER);
mAssignKeyButton = new Button(_("Assign"), "assign", this);
mAssignKeyButton->addActionListener(this);