CA-139888: Changing window size should not change the number of items minimized in Outlook-style navigation panel
CA-139888: Changing window size should not change the number of items minimized in Outlook-style navigation panel

This fixes the following problem:
When the main window is resized, we set the minimum width of the right side panel (Panel2MinSize) to half the size of the window so that the tab contents are visible. This is fine on most situations, but on a higher screen resolution (e.g. 1920x1080) the following problem occurs:
- starting with the main window at minimum size, when the window is maximized, the Panel2MinSize is set to half window's size (e.g. 960)
- when the main window is restored back to the minimum size, the split container is not resized because there is a conflict between Panel2MinSize and the size of the window itself (Panel1MinSize + Panel2MinSize > window's width)
- therefore the navigation panel is not visible and also the content of the tab control may appear out of scale.

To fix this, we set the Panel2MinSize to half of the window's minimum width. This way the right side panel will always fit in the window, including when it is restored to minimum size.
This also fixes [CA-137956] - Restoring Maximised XenCenter does not resize the main panel properly.

Signed-off-by: Mihaela Stoica <be95049f8e30d921fc7e2579c00c48bd84c40606@citrix.com>

ushamandya/xenadmin,kc284/xenadmin,agimofcarmen/xenadmin,huizh/xenadmin,qlw/xenadmin,geosharath/xenadmin,robhoes/xenadmin,huizh/xenadmin,ushamandya/xenadmin,Frezzle/xenadmin,GaborApatiNagy/xenadmin,jijiang/xenadmin,MihaelaStoica/xenadmin,letsboogey/xenadmin,cheng--zhang/xenadmin,cheng--zhang/xenadmin,Frezzle/xenadmin,stephen-turner/xenadmin,agimofcarmen/xenadmin,MihaelaStoica/xenadmin,kc284/xenadmin,Frezzle/xenadmin,Frezzle/xenadmin,minli1/xenadmin,qlw/xenadmin,geosharath/xenadmin,minli1/xenadmin,jijiang/xenadmin,agimofcarmen/xenadmin,cheng--zhang/xenadmin,stephen-turner/xenadmin,kc284/xenadmin,xenserver/xenadmin,ushamandya/xenadmin,jijiang/xenadmin,jijiang/xenadmin,xenserver/xenadmin,letsboogey/xenadmin,minli1/xenadmin,kc284/xenadmin,MihaelaStoica/xenadmin,geosharath/xenadmin,stephen-turner/xenadmin,robhoes/xenadmin,cheng-z/xenadmin,geosharath/xenadmin,letsboogey/xenadmin,GaborApatiNagy/xenadmin,minli1/xenadmin,robhoes/xenadmin,qlw/xenadmin,stephen-turner/xenadmin,robhoes/xenadmin,GaborApatiNagy/xenadmin,jijiang/xenadmin,cheng--zhang/xenadmin,ushamandya/xenadmin,cheng-z/xenadmin,GaborApatiNagy/xenadmin,robhoes/xenadmin,Frezzle/xenadmin,huizh/xenadmin,GaborApatiNagy/xenadmin,Frezzle/xenadmin,huizh/xenadmin,letsboogey/xenadmin,letsboogey/xenadmin,jijiang/xenadmin,MihaelaStoica/xenadmin,qlw/xenadmin,MihaelaStoica/xenadmin,cheng-z/xenadmin,MihaelaStoica/xenadmin,cheng--zhang/xenadmin,minli1/xenadmin,GaborApatiNagy/xenadmin,letsboogey/xenadmin,qlw/xenadmin,huizh/xenadmin,cheng--zhang/xenadmin,huizh/xenadmin,ushamandya/xenadmin,stephen-turner/xenadmin,kc284/xenadmin,cheng-z/xenadmin,cheng-z/xenadmin,minli1/xenadmin,agimofcarmen/xenadmin,geosharath/xenadmin,agimofcarmen/xenadmin,geosharath/xenadmin,stephen-turner/xenadmin,ushamandya/xenadmin,robhoes/xenadmin,xenserver/xenadmin,cheng-z/xenadmin