Work around a bug which made style names in the style editor scrolled to the left far sooner than they needed to be

Originally committed to SVN as r6737.
This commit is contained in:
Thomas Goyne 2012-05-01 02:50:09 +00:00
parent 2ef7ed98c0
commit b8212512e7

View file

@ -383,6 +383,11 @@ DialogStyleEditor::DialogStyleEditor(wxWindow *parent, AssStyle *style, agi::Con
SetSizerAndFit(MainSizer);
// Force the style name text field to scroll based on its final size, rather
// than its initial size
StyleName->SetInsertionPoint(0);
StyleName->SetInsertionPoint(-1);
persist.reset(new PersistLocation(this, "Tool/Style Editor"));
Bind(wxEVT_CHILD_FOCUS, &DialogStyleEditor::OnChildFocus, this);