Made it a bit clearer that virtuals do not work in the constructor the way you'd think they do.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14866 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2005-11-12 13:29:07 +00:00
parent 105644bf32
commit ee001e262a

View File

@ -27,7 +27,7 @@ BTextControl::BTextControl(BRect frame, const char *name, const char *label,
InitData(label, text);
float height;
GetPreferredSize(NULL, &height);
BTextControl::GetPreferredSize(NULL, &height);
ResizeTo(Bounds().Width(), height);