James A. Cleland
2012-04-18 19:07:33 UTC
I hate to beat this one to death, but it's my only remaining bug and I just
can't figure out a solution to it. I need to detect when a splitter within a
BorderContainer has been moved and/or when the contents of the region have been
resized. I've looked through the aforementioned class, the resize mixin,
_Widget, _WidgetBase but I still can't find a function that gets called when you
drag a splitter.
To make things worse, I've dropped down to <ContentPane>.domNode.onresize =
function(){} and my function is STILL not called. I tried this for the regions
on both sides of the splitter (center and trailing).
Resizing of the entire BorderContainer results in <BorderContainer>.resize()
being called and I can do my work there, but this isn't called for spitter
drags, obviously. How can I detect that the size of regions has changed via
splitter drag? Even the function to get the splitter widget appears to be
deprecated, according to the comments in the 1.7 release, not that I'd know what
event to hook on the widget or it's domNode. There's an <domNode>.onMove event
that works in IE, but it doesn't appear to be portable.
Help plz! Thanks
can't figure out a solution to it. I need to detect when a splitter within a
BorderContainer has been moved and/or when the contents of the region have been
resized. I've looked through the aforementioned class, the resize mixin,
_Widget, _WidgetBase but I still can't find a function that gets called when you
drag a splitter.
To make things worse, I've dropped down to <ContentPane>.domNode.onresize =
function(){} and my function is STILL not called. I tried this for the regions
on both sides of the splitter (center and trailing).
Resizing of the entire BorderContainer results in <BorderContainer>.resize()
being called and I can do my work there, but this isn't called for spitter
drags, obviously. How can I detect that the size of regions has changed via
splitter drag? Even the function to get the splitter widget appears to be
deprecated, according to the comments in the 1.7 release, not that I'd know what
event to hook on the widget or it's domNode. There's an <domNode>.onMove event
that works in IE, but it doesn't appear to be portable.
Help plz! Thanks