View Full Version : Grid and autoHeight

23 Apr 2007, 3:55 PM
I have put a Grid in a content panel (I cannot put it into a Grid Panel as am not putting it directly on a layout region). What I have found is that the autoHeight property is being set to true when the render function (see below) is being called. The offsetHeight that I have for the element is 0 so this gets kicked off.

Why is this property being set back to true?

function () {
var c = this.container;
if ((!c.dom.offsetHeight || c.dom.offsetHeight < 20) ||
c.getStyle("height") == "auto") {
this.autoHeight = true;