PDA

View Full Version : [CLOSED] Design Question



adelaney
Sep 14, 2012, 7:00 PM
I have a site that does not use a viewport control. However, I would like to use a layout to generate a N/S/E/W layout for PART of the page. Is this possible to do without using the viewport or a window? Additionally, is it possible to add a fluid "viewport" to a panel (or some other construct) instead of the whole browser window? My ultimate goal is not to rely on the entire page being created by javascript, but still take advantage of some of the layout/fluid features in portions of the page (e.g inside a div or a table cell, etc.).

Daniil
Sep 15, 2012, 6:56 PM
Hi @adelaney,

The Layout property is defined in the AbstractContainer class, the same as it is done in ExtJS.
http://docs.sencha.com/ext-js/4-1/#!/api/Ext.container.AbstractContainer-cfg-layout

So, you can specify any layout for any Container.

Viewport is a Container as well. Therefore you can set its Layout to BorderLayout.

With same success you can specify the BorderLayout for Container, Panel, Window and any type of Containers.