ToolWindow with collapsed height after layout reload

Docking/MDI for Windows Forms Forum

The latest build of this product (v25.1.2) was released 3 months ago, which was before this thread was created.
Posted 1 days ago by A. Willerding
Version: 24.1.1
Platform: .NET 8
Environment: Windows 11 (64-bit)
Avatar

[Update:] It also occurs with version 25.1.2.

The problem occurs in a certain tool window layout constellation:

  • One ToolWindowContainer is docked to the left.
  • A DockContainerContainer with vertical orientation is docked to the right.
    It contains two ToolWindowContainers on top of each other. Their heights are evenly distributed across the total height
  1. Save tool window layout to file
  2. The sizes of all tool windows and their containers are stored correctly in the layout data document.
  3. Load tool window layout from file

Result:

  • The top ToolWindow in the right DockContainerContainer has shrunk to its minimum height, which is a few pixels only
  • The bottom ToolWindow filled the remaining space

As soon as I move the left-docked ToolWindowContainer to somewhere else, the problem no longer occurs.

What could be the cause?

[Modified 1 days ago]

Comments (1)

Posted 13 hours ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Could you please help describe how to recreate the issue using our Sample Browser?  I tried to recreate it using the steps you provided, but could not.  Here is what I tried.

  1. Open the Sample Browser and run the Dockimg/MDI Features demo.
  2. Dragged the "Tool Window Properties" group (which includes both "TW Properties" and "Mgr Properties" tabs) to the right side.  This left only the "Welcome to WinForms Studio" on the left, which should satisfy your first bullet point.
  3. I dragged the tab for "TW Properties" tool window and dropped it to dock at the bottom of that group.  This resulted in the "DockManager Properties" tool window on top and the "Tool Window Properties" tool window on the bottom, both with equal heights.  This should satisfy your second bullet point.
  4. I closed the "Events" tool window since you did not mention any other tool windows in the layout.

So at this point I have one tool window on the left, and two tool windows on the right (one of top of the other).  I save the layout and then restore the layout.  After restore, everything looks the same.

I also tried moving tool windows around to "disrupt" the layout before restoring, and everything still looks correct.

If you can recreate in the Sample Browser application, please let me know the corrected steps to reproduce.  If you cannot reproduce in the Sample Browser, could you please create a simple sample application that demonstrates the issue and send to our support email address referencing this forum post?  If so, please delete any bin/obj folders from the project before zipping or else the attachment may be blocked.


Actipro Software Support

Add Comment

Please log in to a validated account to post comments.