Skip to content

Commit

Permalink
Fix textarea getting an unneeded horizontal scrollbar. See #122.
Browse files Browse the repository at this point in the history
  • Loading branch information
mikke89 committed Sep 30, 2020
1 parent 777e09f commit d6f8c23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Core/Elements/WidgetTextInput.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -956,7 +956,7 @@ void WidgetTextInput::FormatElement()
content_area = FormatText();

if (x_overflow_property == Overflow::Auto &&
parent->GetClientWidth() < content_area.y)
parent->GetClientWidth() < content_area.x)
{
scroll->EnableScrollbar(ElementScroll::HORIZONTAL, width);
}
Expand Down

0 comments on commit d6f8c23

Please sign in to comment.