* 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:
parent
b6cd7771e7
commit
b257bb85e7
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user