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:
@@ -27,7 +27,7 @@ BTextControl::BTextControl(BRect frame, const char *name, const char *label,
|
|||||||
InitData(label, text);
|
InitData(label, text);
|
||||||
|
|
||||||
float height;
|
float height;
|
||||||
GetPreferredSize(NULL, &height);
|
BTextControl::GetPreferredSize(NULL, &height);
|
||||||
|
|
||||||
ResizeTo(Bounds().Width(), height);
|
ResizeTo(Bounds().Width(), height);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user