View Full Version : Overlay popup dynamic border height

19 Jul 2011, 3:14 PM
Hi there, I am trying to fix a border height issue with floating panel overlays with dynamic content. The border height is always fine the first time the popup is opened. However, if the content has changed and the popup is opened again, the border retains its size from the first time opening (although the inner content is resized just fine). I am attaching two images as an example.

Here is the relevant code:

function displayPriceBreakdown(){
if (!this.popup) {
this.popup = new Ext.Panel({
floating: true,
id: 'price_breakdown',
modal: true,
centered: true,
width: 350,
styleHtmlContent: true,
html: getPriceBreakdownHTML(),
dockedItems: [{
dock: 'top',
xtype: 'toolbar',
title: 'Price Breakdown'
scroll: 'vertical'
else {
}Is there any way to keep resizing the border to surround the content with each time the popup opens?