BTextView: do not restrict max size in GetHeightForWidth().

This commit is contained in:
Axel Dörfler 2015-08-17 19:44:45 +02:00
parent 897d8754a6
commit 103adddb37
1 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
/*
* Copyright 2001-2014 Haiku, Inc. All rights reserved.
* Copyright 2001-2015 Haiku, Inc. All rights reserved.
* Distributed under the terms of the MIT License.
*
* Authors:
@ -2601,7 +2601,7 @@ BTextView::GetHeightForWidth(float width, float* min, float* max,
if (min != NULL)
*min = fTextRect.Height();
if (max != NULL)
*max = fTextRect.Height();
*max = B_SIZE_UNLIMITED;
if (preferred != NULL)
*preferred = fTextRect.Height();
}