Unable to get value of the property 'heightModel': In IE 8 and under.
There is a problem when rendering the layout of type hbox or vbox when I sandwich a panel with two grids (grid-panel-grid). This problem appears to only affect IE 8 and under.
So here's the problem...
I have a page with multiple hbox type layout containing grid-panel-grid items. When this is ran in IE 8 or under it will throw error: Unable to get value of the property 'heightModel': object is null or undefined.
I've trace down the code and notice the place that's triggering this error is from the beginLayoutCycle function where ownerContext.boxNames is undefined, therefore heightModel is also undefined.
What I don't quite understand is why would boxNames be undefined in this case, I notice that the ownerContext is the correct classtype, but I did notice something odd is that firstCycle was false when this error is triggered.
I couldn't get this to repeat in firefox or chrome, so I'm wondering if it is known bug for IE.
Looks like beginLayoutCycle was called from resetLayout function which does something to set beginLayout... but then everything was triggered from invlidate function which invalidates layout components.
So I'm trying to figure out and understand why the ownerContext object doesn't contain boxNames in this case for IE browsers.
If anyone have experience with this problem or idea to what might be causing this, it would be really helpful.
Tags for this Thread