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 authored and skjnldsv committed Aug 22, 2024
1 parent 85544b7 commit 1d54cd1
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 1d54cd1

Please sign in to comment.