HHirogensession file composer
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
Fix InvalidOperationException when resizing the filter splitter on a narrow window Double-clicking or dragging the filter row's splitter while the LogExpert window is narrower than ~730px threw: InvalidOperationException: SplitterDistance must be between Panel1MinSize and Width - Panel2MinSize at SplitContainer.set_SplitterDistance at LogWindow.AutoResizeFilterBox The #560 fix set filterSplitContainer.Panel2MinSize = 726. Under Dock=Fill the parent layout engine forces the container below Panel1MinSize + SplitterWidth + Panel2MinSize, so no splitter distance can honour both minimums. The setter throws (it does not clamp) when handed a value that can't fit, and the old ClampSplitterDistance returned Panel1MinSize anyway via Math.Max. Replace ClampSplitterDistance with TryClampSplitterDistance, which returns false when both minimums can't fit. AutoResizeFilterBox and OnFilterSplitContainerMouseMove now skip the assignment in that degenerate state, leaving the splitter put. Tests ported to the Try form plus a regression case pinning the crash geometry (Width 684, Panel2MinSize 726). | 3 个月前 | |
session file composer | 3 个月前 | |
Fix InvalidOperationException when resizing the filter splitter on a narrow window Double-clicking or dragging the filter row's splitter while the LogExpert window is narrower than ~730px threw: InvalidOperationException: SplitterDistance must be between Panel1MinSize and Width - Panel2MinSize at SplitContainer.set_SplitterDistance at LogWindow.AutoResizeFilterBox The #560 fix set filterSplitContainer.Panel2MinSize = 726. Under Dock=Fill the parent layout engine forces the container below Panel1MinSize + SplitterWidth + Panel2MinSize, so no splitter distance can honour both minimums. The setter throws (it does not clamp) when handed a value that can't fit, and the old ClampSplitterDistance returned Panel1MinSize anyway via Math.Max. Replace ClampSplitterDistance with TryClampSplitterDistance, which returns false when both minimums can't fit. AutoResizeFilterBox and OnFilterSplitContainerMouseMove now skip the assignment in that degenerate state, leaving the splitter put. Tests ported to the Try form plus a regression case pinning the crash geometry (Width 684, Panel2MinSize 726). | 3 个月前 |