Skip to content

Commit

Permalink
fix: rotate caption
Browse files Browse the repository at this point in the history
  • Loading branch information
JiHong88 committed Nov 10, 2018
1 parent 2959edf commit 600e16c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/plugins/dialog/image.js
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,7 @@ export default {
}

// transform
if (contextImage._resizing && changeSize) {
if ((contextImage._resizing && changeSize) || (this.context.resizing._rotateVertical && contextImage._captionChecked)) {
this.plugins.resizing.setTransformSize.call(this, imageEl);
}
},
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/dialog/video.js
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ export default {
if (!this.context.dialog.updateModal) {
this.insertNode(container, util.getFormatElement(this.getSelectionNode()));
this.appendFormatTag(container);
} else if(changeSize) {
} else if((contextVideo._resizing && changeSize) || (this.context.resizing._rotateVertical && contextVideo._captionChecked)) {
this.plugins.resizing.setTransformSize.call(this, oIframe);
}

Expand Down

0 comments on commit 600e16c

Please sign in to comment.