diff --git a/uppsrc/CtrlLib/TreeCtrl.cpp b/uppsrc/CtrlLib/TreeCtrl.cpp index 07fd9a606..5774aab13 100644 --- a/uppsrc/CtrlLib/TreeCtrl.cpp +++ b/uppsrc/CtrlLib/TreeCtrl.cpp @@ -115,7 +115,7 @@ Size TreeCtrl::Item::GetValueSize(const Display *treedisplay) const Size TreeCtrl::Item::GetCtrlSize() const { if(!ctrl) return Size(0, 0); - Size csz = ctrl->GetStdSize(); + Size csz = ctrl->GetMinSize(); return Size(Nvl(size.cx, csz.cx), Nvl(size.cy, csz.cy)); } diff --git a/uppsrc/CtrlLib/TreeCtrl.h b/uppsrc/CtrlLib/TreeCtrl.h index 6ed369218..fedf82406 100644 --- a/uppsrc/CtrlLib/TreeCtrl.h +++ b/uppsrc/CtrlLib/TreeCtrl.h @@ -327,8 +327,9 @@ class OptionTree : public TreeCtrl { Array