Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
Fix resize issues when display images fullscreen in minisite. Fix #1168
Browse files Browse the repository at this point in the history
(cherry picked from commit 53612ff)
  • Loading branch information
cdujeu committed Jul 12, 2016
1 parent cf7da3a commit 5ef3525
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion core/src/plugins/editor.diaporama/class.Diaporama.js
Expand Up @@ -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){
Expand Down

0 comments on commit 5ef3525

Please sign in to comment.