Jul 27, 2009, 8:00 PM
[CLOSED] Detect when user resizes a treepanel
I have a BorderLayout with a TreePanel in the West Region. I attached a listener to the TreePanel's bodyresize event. I want to catch when the user resizes the TreePanel using the splitter. When that happens, I send a quick AjaxMethod to update a setting in the database. However, I notice that the bodyresize event is fired 3-4 times when the page first loads and also fired when the browser size changes. Is there another event that tracks when the user initiates the resize?
My current workaround is store the original width of the TreePanel and check during the event if the width changed before firing off the AjaxMethod. It works fine but just wondering if there's a better way.
My current workaround is store the original width of the TreePanel and check during the event if the width changed before firing off the AjaxMethod. It works fine but just wondering if there's a better way.