From b8212512e773f75864e45285b8ef43a164519ed5 Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Tue, 1 May 2012 02:50:09 +0000 Subject: [PATCH] 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. --- aegisub/src/dialog_style_editor.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/aegisub/src/dialog_style_editor.cpp b/aegisub/src/dialog_style_editor.cpp index d89aa9aee..024affad8 100644 --- a/aegisub/src/dialog_style_editor.cpp +++ b/aegisub/src/dialog_style_editor.cpp @@ -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);