Nov 19, 2008, 3:33 PM
Auto Resize Panel in ViewPort on client-side Panel.AutoLoad
NOTE: This is similar to the post I did the other day. I fixed the 'http' prefix in the AutoLoad so no IFRAME should be in play. Still the size of the North Panel doesn't flow when its contents are changed.
Below is a code snippit of what I'm trying to do. In the SearchBar.aspx page I print 'count' number of 's with some text, changing the height of the rendered html. What I am expecting is the NorthPanel to expand and contract its height to fit only the html rendered.
The AutoHeight=true sounds like it should do the trick, but has no effect I can see.
I did stumple on .doAutoLoad(), which has to be called for the change in the .autoload string to be processed. I tried the .doLayout() function, but that did not resize the panel.
Can this be done and how? Do I need to wrap the Panel in a FitLayout or something?
Below is a code snippit of what I'm trying to do. In the SearchBar.aspx page I print 'count' number of 's with some text, changing the height of the rendered html. What I am expecting is the NorthPanel to expand and contract its height to fit only the html rendered.
The AutoHeight=true sounds like it should do the trick, but has no effect I can see.
I did stumple on .doAutoLoad(), which has to be called for the change in the .autoload string to be processed. I tried the .doLayout() function, but that did not resize the panel.
Can this be done and how? Do I need to wrap the Panel in a FitLayout or something?
function OnComboBoxChange(el) {
var text = el.value;
var count = el.lastSelectionText;
NorthPanel.autoLoad = "//localhost:2526/Prototype/Framework/SearchBar.aspx?Count="+count+"&Data="+tText;
NorthPanel.doAutoLoad();
}