Skip to content

Commit

Permalink
Force width/height even when zoomRatio==1
Browse files Browse the repository at this point in the history
Signed-off-by: Dariusz Olszewski <[email protected]>
  • Loading branch information
starypatyk committed Aug 28, 2023
1 parent 016e70d commit 5615dbc
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 @@ -100,7 +100,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 5615dbc

Please sign in to comment.