Trigger fullscreen-change event when closing lightbox interface

When exit button is clicked in the full screen mode, the lightboxinterface
detaches itself but the "jq-fullscreen-change.lip" even is never fired.
This leads to issues as described in T74843 and similar.

Bug: T74843
Change-Id: Id3a68844fd2405fcf289741d54b0602c8e337a3d
This commit is contained in:
Ramunas Geciauskas 2016-03-01 19:39:18 -05:00
parent 55c7b2d5d5
commit 454b279140

View file

@ -320,6 +320,9 @@
gravity: this.correctEW( 'ne' ) gravity: this.correctEW( 'ne' )
} ) } )
.click( function () { .click( function () {
if ( ui.isFullscreen ) {
ui.$main.trigger( $.Event( 'jq-fullscreen-change.lip' ) );
}
ui.unattach(); ui.unattach();
} ); } );