View Full Version : Question about Ext.dom.Element.setXY()

14 May 2014, 7:23 AM
I have a section of code where I do Ext.suspendLayouts, do a bunch of stuff, then Ext.resumeLayouts(true). For some reason, this causes the element to scroll to some other position in the element. I'm trying to save the position before the resumeLayouts by saving the position with Ext.dom.Element.getXY() and then setting it afterwards. However, this causes the element's dom.offsetTop to be changed - namely, it didn't scroll to this point, it's just kind of... aiming at it. This causes the new top of the element to be offset by x pixels and x pixels of whitespace to appear at the bottom. I've tried using the Ext.dom.Element.scrollTo() function, but it doesn't do anything for this situation as far as I can tell.Does anyone have any idea what a solution for this might be?

19 May 2014, 8:21 AM
Sounds like you are hacking around maybe doing something improperly. Is there any chance to see some code?