We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This code doesn't work for fixed-right pane, and fixed-left works fine.
$(document).on('resize', function() { console.log('resized') }).trigger('resize')
I comments this line for work around event.stopPropagation();
/** * A special event that will "capture" a resize event from the parent split-pane or window. * The event will NOT propagate to grandchildren. */ $.event.special._splitpaneparentresize = { setup: function(data, namespaces) { var element = this, parent = $(this).parent().closest('.split-pane')[0] || window; $(this).data(SPLITPANERESIZE_HANDLER, function(event) { var target = event.target === document ? window : event.target; if (target === parent) { event.type = "_splitpaneparentresize"; $.event.dispatch.apply(element, arguments); } else { //event.stopPropagation(); } }); $(parent).on('resize', $(this).data(SPLITPANERESIZE_HANDLER)); }, teardown: function(namespaces) { var parent = $(this).parent().closest('.split-pane')[0] || window; $(parent).off('resize', $(this).data(SPLITPANERESIZE_HANDLER)); $(this).removeData(SPLITPANERESIZE_HANDLER); } };
The text was updated successfully, but these errors were encountered:
Thanks for reporting this! This has now been fixed in version 0.8.0.
Sorry, something went wrong.
Thank you, works fine.
$(document).on('splitpaneresize', function() { // }).trigger('splitpaneresize')
No branches or pull requests
This code doesn't work for fixed-right pane, and fixed-left works fine.
I comments this line for work around
event.stopPropagation();
The text was updated successfully, but these errors were encountered: