From b00a8da8f954cd8116bd7a5375f70550bdcb9009 Mon Sep 17 00:00:00 2001 From: Ira Rice Date: Tue, 28 Oct 2008 02:19:32 +0000 Subject: Fixed OK dialogue so that it draws correctly for multiple lines (forgot to do button padding before). --- src/gui/ok_dialog.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gui/ok_dialog.cpp') 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))); } -- cgit v1.2.3-70-g09d2