Skip to content

Commit

Permalink
[PR] Fix window size so contents are all visible
Browse files Browse the repository at this point in the history
Fixed an issue where the command help section could be cut off at the bottom by limiting the maximum window size and making it scrollable.
  • Loading branch information
PrincessRTFM committed Feb 24, 2024
1 parent 2d2cc6a commit 7401f69
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions PositionalGuide/ConfigWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ public class ConfigWindow: Window, IDisposable {
public const float InactiveOptionAlpha = 0.5f;

private const ImGuiWindowFlags flags = ImGuiWindowFlags.None
| ImGuiWindowFlags.NoScrollbar
| ImGuiWindowFlags.NoScrollWithMouse
//| ImGuiWindowFlags.NoScrollbar
//| ImGuiWindowFlags.NoScrollWithMouse
| ImGuiWindowFlags.AlwaysAutoResize;
private const int ptrMemWidth = sizeof(short);

Expand Down Expand Up @@ -67,6 +67,9 @@ public ConfigWindow(Plugin core) : base(core.Name, flags) {
};
this.AllowClickthrough = true;
this.AllowPinning = true;
this.SizeConstraints = new() {
MaximumSize = new(700, 900),
};

this.conf = core.Config;

Expand Down
2 changes: 1 addition & 1 deletion PositionalGuide/PositionalGuide.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<Product>PositionalGuide</Product>
<Version>4.4.0</Version>
<Version>4.4.1</Version>
<Description>Provides drawn guidelines to see where you need to stand to hit enemies with positionals</Description>
<Copyright>Copyleft VariableVixen 2022</Copyright>
<PackageProjectUrl>https://github.com/PrincessRTFM/PositionalAssistant</PackageProjectUrl>
Expand Down

0 comments on commit 7401f69

Please sign in to comment.