Snapshot for release 2026.10.9.1 (internal ec9ab64)

This commit is contained in:
Tom Bohar 2026-10-09 08:49:19 -04:00
commit c94fa9deec
6 changed files with 411 additions and 47 deletions

View file

@ -66,7 +66,10 @@ internal sealed record PanelSpec(
ImGuiWindowFlags BodyFlags = ImGuiWindowFlags.None,
// Where the panel first opens (logical units) when nothing is saved for its
// key; null = the cascade. (Script windows: a FirstUseEver position.)
Vector2? DefaultPos = null);
Vector2? DefaultPos = null,
// No resize grip, docked or popped out: the face sizes itself (the RynthNav arrow
// fits its height to what it shows). Chromeless and GripInBody panels only.
bool NoResize = false);
/// <summary>An ImGui panel face. One instance per open; dropped on close.</summary>
internal interface IImGuiPanel
@ -628,7 +631,7 @@ internal static class ImGuiPanelHost
bool standard = entry.Spec.Chrome == PanelChrome.Standard;
int caption = standard ? (int)(RynthTheme.HeaderHeight * s) : 0;
int buttons = standard ? (int)HeaderButtonsWidth(entry, s, popped: true) : 0;
ImGuiPopOuts.Open(entry.Title, left, top, (int)size.X, (int)size.Y, caption, buttons, s);
ImGuiPopOuts.Open(entry.Title, left, top, (int)size.X, (int)size.Y, caption, buttons, s, resizable: !entry.Spec.NoResize);
entry.Popped = true;
PersistPopped(entry, open: true, left, top, (int)size.X, (int)size.Y, placeScale);
}
@ -789,7 +792,8 @@ internal static class ImGuiPanelHost
// A GripInBody face (standard chrome, no strip under the body) is handled
// the same way, over the corner the face leaves free.
bool inlineGrip = standard && spec.GripInBody;
bool manualGrip = (!standard || inlineGrip) && !clickThrough && !popped; // popped: the window resizes itself
bool manualGrip = (!standard || inlineGrip) && !clickThrough && !popped // popped: the window resizes itself
&& !spec.NoResize;
Vector2 outerPos = ImGuiNET.ImGui.GetWindowPos(), outerSize = ImGuiNET.ImGui.GetWindowSize();
float gSize = GripSize(entry, uiScale);
Vector2 gMin = GripMin(entry, uiScale, outerPos + outerSize);