Permalink
Browse files

Fix resize issues when display images fullscreen in minisite. Fix #1168

(cherry picked from commit 53612ff)
  • Loading branch information...
1 parent cf7da3a commit 5ef3525ad3c1084bc465f286b99f1578c472dea3 @cdujeu cdujeu committed Jul 7, 2016
Showing with 6 additions and 1 deletion.
  1. +6 −1 core/src/plugins/editor.diaporama/class.Diaporama.js
@@ -275,7 +275,12 @@ Class.create("Diaporama", AbstractEditor, {
if(this.IEorigWidth) this.imgContainer.setStyle({width:this.IEorigWidth});
}else{
if(this.fullScreenMode){
- fitHeightToBottom(this.imgContainer, this.element);
+ if(this.imgContainer.parentNode !== this.element){
+ fitHeightToBottom(this.imgContainer.parentNode);
+ fitHeightToBottom(this.imgContainer);
+ }else{
+ fitHeightToBottom(this.imgContainer, this.element);
+ }
if(this.IEorigWidth) this.imgContainer.setStyle({width:this.element.getWidth()});
}else{
if(this.editorOptions.context.elementName){

0 comments on commit 5ef3525

Please sign in to comment.