Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
133
Panel not letting window resize?
posted

Hi,

I am facing an issue, whether the application window cannot be properly re-sized because of (I think) the splitter.

The main window of the application has a number of controls with control1 having a horizontal splitter at the bottom of it. If I attempt to resize the window, I can only resize it upward until the bottom edge of the window hits the bottom edge of control1 and the its bottom splitter(which is now covered by the bottom panel of the window). So in order to resize the window height, I have to drag the bottom edge of the window up, until the above happens, release mouse click and then repeat that a number of times to resize the window as required.

I got the control1 and all its parent controls (except the main window) to be dynamically resized on main window's sizeChanged even and the do resize visually, yet the window cannot be properly resized.

So once again, to reiterate - the bottom edge can be moved up until it hits the splitter (which is at the bottom of Control1) and no further. To move it further, the I have to release left mouse button of the edge of the window, click again, drag up the same amount, repeat...

I hope I'm making myself clear ^^

Thanks!

 

mockMainApplication.zip
Parents
  • 133
    posted

    I have just attached a sample project demonstrating this behavior to the 1st post.

    If you try resizing the window upwards, you should notice that you can only resize it until it hits the bottom edge of a docked panel. Is there a way to make the panel resize together with the window?

    ultraDockManager1.ControlPanes[ListHostPanel].DockAreaPane.Size = new Size(this.Width, this.Height - 250); // rough example

    ^^ That seems to resize the panel visually, yet the window still gets blocked by an 'invisible border'

Reply Children
No Data