Skip to content

Commit

Permalink
Textboxes should take whitespace into account when calculating size.
Browse files Browse the repository at this point in the history
  • Loading branch information
robbieknuth committed Sep 19, 2016
1 parent b8e7874 commit 6b9c7c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Avalonia.Controls/Presenters/TextPresenter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ protected override Size MeasureOverride(Size availableSize)
{
var text = Text;

if (!string.IsNullOrWhiteSpace(text))
if (!string.IsNullOrEmpty(text))
{
return base.MeasureOverride(availableSize);
}
Expand Down

0 comments on commit 6b9c7c1

Please sign in to comment.