* partly revert, we need to keep the initial width

dont overwrite with preferred, it needs to called explicit



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27332 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Karsten Heimrich 2008-09-04 23:44:04 +00:00
parent b6cd7771e7
commit b257bb85e7

View File

@ -759,10 +759,10 @@ BTextControl::_InitData(const char* label, const char* initialText,
void
BTextControl::_ValidateLayout()
{
float width, height;
BTextControl::GetPreferredSize(&width, &height);
float height;
BTextControl::GetPreferredSize(NULL, &height);
ResizeTo(width, height);
ResizeTo(Bounds().Width(), height);
_LayoutTextView();