diff options
Diffstat (limited to 'src/gui/npc_text.cpp')
-rw-r--r-- | src/gui/npc_text.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/gui/npc_text.cpp b/src/gui/npc_text.cpp index dc70927c..f86f45e9 100644 --- a/src/gui/npc_text.cpp +++ b/src/gui/npc_text.cpp @@ -36,8 +36,11 @@ NpcTextDialog::NpcTextDialog(gcn::Container *parent): okButton = new Button("OK"); setSize(260, 175); - scrollArea->setDimension(gcn::Rectangle(5, 5, 250, 130)); - okButton->setPosition(260 - 10 - okButton->getWidth(), 145); + scrollArea->setDimension(gcn::Rectangle( + 5, 5, 250, 160 - okButton->getHeight())); + okButton->setPosition( + 260 - 5 - okButton->getWidth(), + 175 - 5 - okButton->getHeight()); okButton->setEventId("ok"); okButton->addActionListener(this); |