mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-29 00:26:10 +03:00
Merge pull request #940 from avandecreme/fullpage
Enforce html element width and height to 100% when going full page.
This commit is contained in:
commit
ebf7cbf918
@ -919,9 +919,14 @@ $.extend( $.Viewer.prototype, $.EventSource.prototype, $.ControlDock.prototype,
|
|||||||
docStyle.padding = "0";
|
docStyle.padding = "0";
|
||||||
|
|
||||||
this.bodyWidth = bodyStyle.width;
|
this.bodyWidth = bodyStyle.width;
|
||||||
this.bodyHeight = bodyStyle.height;
|
this.docWidth = docStyle.width;
|
||||||
bodyStyle.width = "100%";
|
bodyStyle.width = "100%";
|
||||||
|
docStyle.width = "100%";
|
||||||
|
|
||||||
|
this.bodyHeight = bodyStyle.height;
|
||||||
|
this.docHeight = docStyle.height;
|
||||||
bodyStyle.height = "100%";
|
bodyStyle.height = "100%";
|
||||||
|
docStyle.height = "100%";
|
||||||
|
|
||||||
//when entering full screen on the ipad it wasnt sufficient to leave
|
//when entering full screen on the ipad it wasnt sufficient to leave
|
||||||
//the body intact as only only the top half of the screen would
|
//the body intact as only only the top half of the screen would
|
||||||
@ -982,7 +987,10 @@ $.extend( $.Viewer.prototype, $.EventSource.prototype, $.ControlDock.prototype,
|
|||||||
docStyle.padding = this.docPadding;
|
docStyle.padding = this.docPadding;
|
||||||
|
|
||||||
bodyStyle.width = this.bodyWidth;
|
bodyStyle.width = this.bodyWidth;
|
||||||
|
docStyle.width = this.docWidth;
|
||||||
|
|
||||||
bodyStyle.height = this.bodyHeight;
|
bodyStyle.height = this.bodyHeight;
|
||||||
|
docStyle.height = this.docHeight;
|
||||||
|
|
||||||
body.removeChild( this.element );
|
body.removeChild( this.element );
|
||||||
nodes = this.previousBody.length;
|
nodes = this.previousBody.length;
|
||||||
|
Loading…
Reference in New Issue
Block a user