Removed scrollbar for image preview (#4284)
parent
6f286c478d
commit
6ed9c66f50
|
@ -93,6 +93,7 @@ export default {
|
||||||
},
|
},
|
||||||
onImageClick() {
|
onImageClick() {
|
||||||
if (this.preview) {
|
if (this.preview) {
|
||||||
|
DomHandler.addClass(document.body, 'p-overflow-hidden');
|
||||||
this.maskVisible = true;
|
this.maskVisible = true;
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.previewVisible = true;
|
this.previewVisible = true;
|
||||||
|
@ -179,6 +180,7 @@ export default {
|
||||||
this.previewVisible = false;
|
this.previewVisible = false;
|
||||||
this.rotate = 0;
|
this.rotate = 0;
|
||||||
this.scale = 1;
|
this.scale = 1;
|
||||||
|
DomHandler.removeClass(document.body, 'p-overflow-hidden');
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
|
Loading…
Reference in New Issue