Strange behavior on getOffsetWidth()

I am using nightly build 275.

I’m trying to calculate the proper value for setAutoFitMaxWidth on a ListGrid, so I called getOffsetWidth() on the containing VLayout. Strangely, calling that caused my ListGrid (a member of that VLayout) to change its location.

It didn’t even matter when I called it. I could call

SC.say(panel.getOffsetWidth())

and it would make it move.

I fixed it by calling panel.getWidth() instead, but I’m confused. Why should calling a “getter” change anything?

Fixed in SVN. Let us know if you still have issues.

Sanjiv