PDA

View Full Version : Minimal portal's height ?



shinkenno
16 Dec 2010, 6:25 AM
Hello,

I am defining a portal with 3 columns within a window like this:



var allwebcamwin = new Ext.Window({
id: 'allwebcam_win',
title: 'Session Webcams',
closeAction :'hide',
collapsible: false,
draggable: true,
closable: true,
resizable: false,
shadow: false,
constrain: true,
iconCls: 'allwebcam_icon',
autoScroll: true,
width : 600,
height : 550,
tbar: tb,
items: [{
xtype:'portal',
id: 'webcam_portal',
border: false,
bodyStyle: 'background-color: #e8e8e8;',
items:[{
columnWidth:.33,
id: 'portal_column1',
style:'padding:5px 0 5px 5px',
items:[]
},{
columnWidth:.33,
id: 'portal_column2',
style:'padding: 5px 0 5px 5px',
items:[]
},{
columnWidth:.33,
id: 'portal_column3',
style:'padding: 5px 0 5px 5px;',
items:[]
}]
}]
});


I dynamically add some 150px-height portlets to this portal (see attachment). Then I add a floating panel in top of this portal with a given height equal to the inner height of the window (not the portal). The problem is that the floating panel is only displayed in the "portal area" (the panel size is correct but I have to scroll to view the panel's bottom) and do not take the whole "window area" (see attachment). Should I force the portal to have a minimum height equal to the window inner area height ? How can I achieve that ? Is there another solution ?
Thanks for your answers.

shinkenno
16 Dec 2010, 6:53 AM
Sorry everyone! It was (far) more simple than I thought.
I added the floating panel to the portal instead adding it to the window. Now it perfectly works.