Skip to content

Commit 7401f69

Browse files
committed
[PR] Fix window size so contents are all visible
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.
1 parent 2d2cc6a commit 7401f69

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

PositionalGuide/ConfigWindow.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ public class ConfigWindow: Window, IDisposable {
1515
public const float InactiveOptionAlpha = 0.5f;
1616

1717
private const ImGuiWindowFlags flags = ImGuiWindowFlags.None
18-
| ImGuiWindowFlags.NoScrollbar
19-
| ImGuiWindowFlags.NoScrollWithMouse
18+
//| ImGuiWindowFlags.NoScrollbar
19+
//| ImGuiWindowFlags.NoScrollWithMouse
2020
| ImGuiWindowFlags.AlwaysAutoResize;
2121
private const int ptrMemWidth = sizeof(short);
2222

@@ -67,6 +67,9 @@ public ConfigWindow(Plugin core) : base(core.Name, flags) {
6767
};
6868
this.AllowClickthrough = true;
6969
this.AllowPinning = true;
70+
this.SizeConstraints = new() {
71+
MaximumSize = new(700, 900),
72+
};
7073

7174
this.conf = core.Config;
7275

PositionalGuide/PositionalGuide.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<Project Sdk="Microsoft.NET.Sdk">
33
<PropertyGroup>
44
<Product>PositionalGuide</Product>
5-
<Version>4.4.0</Version>
5+
<Version>4.4.1</Version>
66
<Description>Provides drawn guidelines to see where you need to stand to hit enemies with positionals</Description>
77
<Copyright>Copyleft VariableVixen 2022</Copyright>
88
<PackageProjectUrl>https://github.com/PrincessRTFM/PositionalAssistant</PackageProjectUrl>

0 commit comments

Comments
 (0)