PDA

View Full Version : Panel resizing inside WindowGroup



savsw
7 Sep 2010, 8:53 PM
Hello,

I create panels and insert them into Ext.WindowGroup by the following way:


var panel = new Ext.Portal(
//some options
);
var windows = new Ext.WindowGroup();
...
var win = panel;
windows.register(win);

I want to have opportunity to resize the panel inside the WindowGroup object.
I've been described how to resize panels inside Ext.Viewport, but the same solution does not work for me in this case.

Please tell me, how can I do it? What options can be used here?

Regards,
Alexander

Animal
7 Sep 2010, 9:13 PM
What on EARTH are you doing?

What randomness is this?

"Doesn't work"? What would the definition of "work" be for this completely random call?

savsw
7 Sep 2010, 11:13 PM
I tried to simplify the example.
"Doesn't work" means, when I click on button border of any panel(widget) I cannot resize it.
On the page I've got the following structure:
There is one Ext.Viewport object.
Inside it there is one Ext.Panel object (name it Portal):

var panel = new Ext.Panel({
id: "x-portal",
region: 'center',
layout: 'border',
items:[{
region: 'west',
width: '33%',
split: true,
id: 'portal_col_0',
bodyStyle:'padding:10px 0 10px 10px'
},{
region: 'center',
id: 'portal_col_1',
bodyStyle:'padding:10px 0 10px 10px'
},{
region: 'east',
split: true,
width: '33%',
id: 'portal_col_2',
bodyStyle:'padding:10px'
}]
});
var viewport = new Ext.Viewport({
layout : 'border',
items : [panel]
}); Ext.Panel - have three columns to display.
When I add new widget (Ext.Panel) object into the "panel" object(Portal), I can resize vertical columns. All widgets inside each columns are resized also.
But I also want to change height of each widget separately.

I add new widget into the "panel" (Portal) by using WindowGroup.
It looks something like this:

var panel = new Ext.Portal(
//some options
);
var windows = new Ext.WindowGroup();
...
var win = panel;
windows.register(win);
I suppose some options are neede here for my functionality.