Changeset 61 for Mulberry/trunk

Show
Ignore:
Timestamp:
05/20/07 14:16:28 (2 years ago)
Author:
daboo
Message:

Fix to make sure error dialog properly expands to show all the error message text.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • Mulberry/trunk/Linux/Sources/Application/General/CErrorDialog.cp

    r21 r61  
    344344                JSize txt_lines = mTextCtrl->GetLineCount(); 
    345345                unsigned long txt_height = mTextCtrl->GetLineTop(txt_lines) + mTextCtrl->GetLineHeight(txt_lines); 
    346                 if (txt_height + 8UL > mTextCtrl->GetBoundsHeight()) 
     346                if (txt_height + 8UL > mTextCtrl->GetFrameHeight()) 
    347347                { 
    348348                        // Just resize main window - child windows will resize/move as appropriate 
    349                         height_resize = txt_height + 8 - mTextCtrl->GetBoundsHeight(); 
     349                        height_resize = txt_height + 8 - mTextCtrl->GetFrameHeight(); 
    350350                } 
    351351        }