Commit c1c320a9 authored by twanvl's avatar twanvl

don't keep adding to the padding of native look styles

parent 0ec81401
......@@ -322,7 +322,7 @@ IMPLEMENT_VALUE_EDITOR(Text)
{
if (viewer.nativeLook() && field().multi_line) {
scrollbar = new TextValueEditorScrollBar(*this);
style->padding_right += scrollbar->GetSize().x;
style->padding_right = max(style->padding_right, (double)scrollbar->GetSize().x);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment