Skip to content
This repository has been archived by the owner on May 28, 2023. It is now read-only.

Commit

Permalink
Fixing issue #32 (text wrap freaks out at some global font scales bec…
Browse files Browse the repository at this point in the history
…ause it flashes a scroll bar as sizing).
  • Loading branch information
PunishedPineapple committed Dec 22, 2022
1 parent 0b4b05b commit 11764af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion WaymarkPresetPlugin/UI/Window_Editor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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 );

Expand Down

0 comments on commit 11764af

Please sign in to comment.