From 53612ffb510a68c4f251c8379d6cffc5ad31654b Mon Sep 17 00:00:00 2001 From: cdujeu Date: Thu, 7 Jul 2016 14:58:34 +0200 Subject: [PATCH] Fix resize issues when display images fullscreen in minisite. Fix #1168 --- core/src/plugins/editor.diaporama/class.Diaporama.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/core/src/plugins/editor.diaporama/class.Diaporama.js b/core/src/plugins/editor.diaporama/class.Diaporama.js index 611d53f667..c5b14fdcd4 100644 --- a/core/src/plugins/editor.diaporama/class.Diaporama.js +++ b/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){