Skip to content

Commit

Permalink
Merge pull request #368 from BAndysc/dont_collapse
Browse files Browse the repository at this point in the history
Don't collapse if any visible dockable is not collapsable
  • Loading branch information
wieslawsoltes authored Oct 19, 2024
2 parents 5d3e14e + fb22e8d commit 769f1ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Dock.Model/FactoryBase.Dockable.cs
Original file line number Diff line number Diff line change
Expand Up @@ -755,7 +755,7 @@ private void UpdateIsEmpty(IDock dock)

var newIsEmpty = dock.VisibleDockables == null
|| dock.VisibleDockables?.Count == 0
|| dock.VisibleDockables!.All(x => x is IDock { IsEmpty: true } or IProportionalDockSplitter);
|| dock.VisibleDockables!.All(x => x is IDock { IsEmpty: true, IsCollapsable: true } or IProportionalDockSplitter);

if (oldIsEmpty != newIsEmpty)
{
Expand Down

0 comments on commit 769f1ed

Please sign in to comment.