Fix height of multi line text boxes and TextCtrls

This commit is contained in:
Twan van Laarhoven
2020-06-01 13:33:53 +02:00
parent 989da67ec3
commit 36c1c2541a
2 changed files with 9 additions and 10 deletions
+2 -2
View File
@@ -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;
}
}