Skip to content

Commit

Permalink
fix(images): Force width/height even when zoomRatio==1
Browse files Browse the repository at this point in the history
Signed-off-by: Dariusz Olszewski <starypatyk@users.noreply.github.com>
  • Loading branch information
starypatyk committed Mar 10, 2024
1 parent aeab2bd commit 1f0fced
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/Images.vue
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,10 @@ export default {
},
imgStyle() {
if (this.zoomRatio === 1) {
return {}
return {
height: this.zoomHeight + 'px',
width: this.zoomWidth + 'px',
}
}
return {
marginTop: Math.round(this.shiftY * 2) + 'px',
Expand Down

0 comments on commit 1f0fced

Please sign in to comment.