summaryrefslogtreecommitdiff
path: root/src/gui/ok_dialog.cpp
diff options
context:
space:
mode:
authorIra Rice <irarice@gmail.com>2008-10-28 02:19:32 +0000
committerIra Rice <irarice@gmail.com>2008-10-28 02:19:32 +0000
commitb00a8da8f954cd8116bd7a5375f70550bdcb9009 (patch)
treeebce02979d6d10be18791c55eb069cc8f8008cf1 /src/gui/ok_dialog.cpp
parent42a982115438f269f7b3877a759fa982ea1bffa7 (diff)
downloadmana-b00a8da8f954cd8116bd7a5375f70550bdcb9009.tar.gz
mana-b00a8da8f954cd8116bd7a5375f70550bdcb9009.tar.bz2
mana-b00a8da8f954cd8116bd7a5375f70550bdcb9009.tar.xz
mana-b00a8da8f954cd8116bd7a5375f70550bdcb9009.zip
Fixed OK dialogue so that it draws correctly for multiple lines
(forgot to do button padding before).
Diffstat (limited to 'src/gui/ok_dialog.cpp')
-rw-r--r--src/gui/ok_dialog.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/ok_dialog.cpp b/src/gui/ok_dialog.cpp
index 13124c3c..2c7661a1 100644
--- a/src/gui/ok_dialog.cpp
+++ b/src/gui/ok_dialog.cpp
@@ -50,7 +50,7 @@ OkDialog::OkDialog(const std::string &title, const std::string &msg,
{
// 15 == height of each line of text (based on font heights)
// 14 == row top + bottom graphic pixel heights
- setContentSize(mTextBox->getMinWidth() + 15, 15 + (numRows * 15));
+ setContentSize(mTextBox->getMinWidth() + 15, 15 + (numRows * 15) + okButton->getHeight());
mTextArea->setDimension(gcn::Rectangle(4, 5, mTextBox->getMinWidth() + 5,
3 + (numRows * 14)));
}