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

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1128 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2008-08-09 21:44:54 +00:00
parent 22722f28ce
commit 59449c648a
+1 -1
View File
@@ -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);
}
}