From 11764af8708ee67e5a78e475cc09d95af9b0a2ee Mon Sep 17 00:00:00 2001 From: PunishedPineapple <50609717+PunishedPineapple@users.noreply.github.com> Date: Thu, 22 Dec 2022 03:02:30 -0600 Subject: [PATCH] Fixing issue #32 (text wrap freaks out at some global font scales because it flashes a scroll bar as sizing). --- WaymarkPresetPlugin/UI/Window_Editor.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WaymarkPresetPlugin/UI/Window_Editor.cs b/WaymarkPresetPlugin/UI/Window_Editor.cs index 1660540..7d3046f 100644 --- a/WaymarkPresetPlugin/UI/Window_Editor.cs +++ b/WaymarkPresetPlugin/UI/Window_Editor.cs @@ -34,7 +34,7 @@ public void Draw() } ImGui.SetNextWindowSize( new( 100 ), ImGuiCond.Appearing ); // This is a quick and dirty reset of text wrapping to make things look ok if style has changed. Not the most elegant solution, but it gets the job done. - if( ImGui.Begin( Loc.Localize( "Window Title: Preset Editor", "Preset Editor" ) + "###Preset Editor", ImGuiWindowFlags.NoCollapse | ImGuiWindowFlags.AlwaysAutoResize ) ) + if( ImGui.Begin( Loc.Localize( "Window Title: Preset Editor", "Preset Editor" ) + "###Preset Editor", ImGuiWindowFlags.NoCollapse | ImGuiWindowFlags.NoScrollbar | ImGuiWindowFlags.AlwaysAutoResize ) ) { ImGuiUtils.TitleBarHelpButton( () => { mUI.HelpWindow.OpenHelpWindow( HelpWindowPage.Editing ); }, 0, UiBuilder.IconFont );