* 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:
@@ -759,10 +759,10 @@ BTextControl::_InitData(const char* label, const char* initialText,
|
|||||||
void
|
void
|
||||||
BTextControl::_ValidateLayout()
|
BTextControl::_ValidateLayout()
|
||||||
{
|
{
|
||||||
float width, height;
|
float height;
|
||||||
BTextControl::GetPreferredSize(&width, &height);
|
BTextControl::GetPreferredSize(NULL, &height);
|
||||||
|
|
||||||
ResizeTo(width, height);
|
ResizeTo(Bounds().Width(), height);
|
||||||
|
|
||||||
_LayoutTextView();
|
_LayoutTextView();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user