Merge "Position toolbar if loading with non-zero scroll offset"

This commit is contained in:
jenkins-bot 2013-06-26 20:17:17 +00:00 committed by Gerrit Code Review
commit e83cb3f2b5

View file

@ -245,6 +245,11 @@ ve.ui.Toolbar.prototype.resetPosition = function () {
*/
ve.ui.Toolbar.prototype.enableFloating = function () {
this.$window = $( this.getElementWindow() ).on( this.windowEvents );
// TODO: Place this is a DOM attach event for this.$
setTimeout( ve.bind( function () {
// The page may load with a non-zero scroll without trigger the scroll event
this.onWindowScroll();
}, this ), 0 );
};
/**