This is a migrated thread and some comments may be shown as answers.

DockPanels don't resize properly after hide

1 Answer 63 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Karen Mattox
Top achievements
Rank 1
Karen Mattox asked on 01 Apr 2009, 09:02 PM
I have a simple form with three docked windows. The first is on the bottom, taking half the screen, then two equal size panels on the top. When I hide the left top panel, then the right top panel, then unhide them (in either order), the left top panel is only about 25 pixels wide (probably your default minsize), and the right panel takes up the rest of the top half of the screen. Shouldn't unhide restore the panel to it's original size? I don't want to set the minsize to half the screen because my users might want to make it smaller. I have tried responding to the resize event, but then the contents of the DockPanels get unsysnced with the DockPanel size, although they are set up to fill the DockPanels. I've tried setting PreferredDockSize in the form load, that does not seem to help.

1 Answer, 1 is accepted

Sort by
0
Julian Benkov
Telerik team
answered on 03 Apr 2009, 02:04 PM
Hello Karen Mattox

Please try setting directly the size of the DockPanel in this situation. If you continue to experience problems please send us a sample application so that we can debug it locally. Thank you in advance.

Greetings,
Julian
the Telerik team
Tags
Dock
Asked by
Karen Mattox
Top achievements
Rank 1
Answers by
Julian Benkov
Telerik team
Share this question
or