mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-21 20:56:09 +03:00
Force the display of body to be block when fullscreen
This commit is contained in:
parent
d04ccddebe
commit
e78e6646e6
@ -1000,6 +1000,9 @@ $.extend( $.Viewer.prototype, $.EventSource.prototype, $.ControlDock.prototype,
|
||||
bodyStyle.height = "100%";
|
||||
docStyle.height = "100%";
|
||||
|
||||
this.bodyDisplay = bodyStyle.display;
|
||||
bodyStyle.display = "block";
|
||||
|
||||
//when entering full screen on the ipad it wasn't sufficient to leave
|
||||
//the body intact as only only the top half of the screen would
|
||||
//respond to touch events on the canvas, while the bottom half treated
|
||||
@ -1064,6 +1067,8 @@ $.extend( $.Viewer.prototype, $.EventSource.prototype, $.ControlDock.prototype,
|
||||
bodyStyle.height = this.bodyHeight;
|
||||
docStyle.height = this.docHeight;
|
||||
|
||||
bodyStyle.display = this.bodyDisplay;
|
||||
|
||||
body.removeChild( this.element );
|
||||
nodes = this.previousBody.length;
|
||||
for ( i = 0; i < nodes; i++ ) {
|
||||
|
Loading…
Reference in New Issue
Block a user