}
}
- // Take off 15px top and bottom for borders, plus 40px each for the title and button area before setting the
- // new max-height
+ // Take off 15px top and bottom for borders, plus 69px for the title and 57px for the
+ // button area before setting the new max-height.
totalheight = newheight;
- newheight = newheight - (15 + 15 + 40 + 40);
+ newheight = newheight - (69 + 57 + 15 + 15);
dialogue.setStyle('maxHeight', newheight + 'px');
var dialogueheight = bb.getStyle('height');
if (dialogueheight < this.get('baseheight')) {
dialogueheight = this.get('baseheight');
dialogue.setStyle('height', dialogueheight + 'px');
+ } else {
+ dialogue.setStyle('height', 'auto');
}
this.panel.centerDialogue();