mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-29 00:30:44 +00:00
Merge "Position toolbar if loading with non-zero scroll offset"
This commit is contained in:
commit
e83cb3f2b5
|
@ -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 );
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue