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

Commit 53612ff

Browse files
committed
Fix resize issues when display images fullscreen in minisite. Fix #1168
1 parent c55a1d3 commit 53612ff

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

core/src/plugins/editor.diaporama/class.Diaporama.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,12 @@ Class.create("Diaporama", AbstractEditor, {
275275
if(this.IEorigWidth) this.imgContainer.setStyle({width:this.IEorigWidth});
276276
}else{
277277
if(this.fullScreenMode){
278-
fitHeightToBottom(this.imgContainer, this.element);
278+
if(this.imgContainer.parentNode !== this.element){
279+
fitHeightToBottom(this.imgContainer.parentNode);
280+
fitHeightToBottom(this.imgContainer);
281+
}else{
282+
fitHeightToBottom(this.imgContainer, this.element);
283+
}
279284
if(this.IEorigWidth) this.imgContainer.setStyle({width:this.element.getWidth()});
280285
}else{
281286
if(this.editorOptions.context.elementName){

0 commit comments

Comments
 (0)