mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
Fix height of multi line text boxes and TextCtrls
This commit is contained in:
@@ -123,8 +123,8 @@ wxSize TextCtrl::DoGetBestSize() const {
|
||||
return wxSize(1,1);
|
||||
} else {
|
||||
wxSize ws = GetSize(), cs = GetClientSize();
|
||||
Style& style = *viewers.front()->getStyle();
|
||||
return wxSize(style.width, style.height) + ws - cs;
|
||||
ValueViewer& viewer = *viewers.front();
|
||||
return wxSize(viewer.bounding_box.width, viewer.bounding_box.height) + ws - cs;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user