Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

Force Window to take up whole body when maximize

$
0
0
I have a VLayout with 2 Canvases that should look like Windows and have Window's maximize functionality.

When a Window is a member of VLayout - is there any way to force it to take up the whole document body height and with when maximized and not just the parent's width/height?

My workaround was to use Portlets inside VLayout but of course portletMaximized and other portlet events are not present in VLayout - only in PortletLayout - but I need to track maximize/minimize. Is there a better way to achieve maximizing members of VLayout to take up the whole page?

Here is my sample code, is this a good practice?

Code:

        isc.overwriteClass("Portlet", "Portlet").addMethods({
                canDragReposition:false,
                animateMinimize: false,
                resizeBarTarget: 'next',
                showMinimizeButton: false,
                showCloseButton: false
        });

        isc.VLayout.create({
                width: "100%",
                height: "100%",
                members: [
                        isc.Portlet.create({
                                title: 'Detailed',
                                showResizeBar: true
                        }),
                        isc.Portlet.create({
                                title: "Summaries",
                                height: "30%"
                        }),
                ]
        })


Viewing all articles
Browse latest Browse all 4756

Trending Articles