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

Commit

Permalink
Editor.diaporama : exif rotation changes broke ImageViewer (extending…
Browse files Browse the repository at this point in the history
… Diaporama)
  • Loading branch information
cdujeu committed Apr 17, 2014
1 parent 2315aa7 commit 47bb867
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions core/src/plugins/editor.diaporama/class.Diaporama.js
Expand Up @@ -334,7 +334,6 @@ Class.create("Diaporama", AbstractEditor, {
},

resizeImage : function(morph){
var node = this.nodes.get(this.currentFile);
if(this.autoFit && morph){
this.computeFitToScreenFactor();
}
Expand All @@ -352,9 +351,13 @@ Class.create("Diaporama", AbstractEditor, {
this.imgBorder.removeClassName("ort-rotate-6");
this.imgBorder.removeClassName("ort-rotate-7");
this.imgBorder.removeClassName("ort-rotate-8");
var ort = node.getMetadata().get("image_exif_orientation");
if (ort)
this.imgBorder.addClassName("ort-rotate-"+ort);

if(this.nodes && this.nodes.get(this.currentFile)){
var node = this.nodes.get(this.currentFile);
var ort = node.getMetadata().get("image_exif_orientation");
if (ort)
this.imgBorder.addClassName("ort-rotate-"+ort);
}

// Center vertically
var marginTop=0;
Expand Down

0 comments on commit 47bb867

Please sign in to comment.