|
@@ -569,8 +569,8 @@
|
|
|
const prompt = this.styleList[this.curStyleIndex].prompt;
|
|
|
const noPromot = this.styleList[this.curStyleIndex].negativePrompt;
|
|
|
let unit = 768 / window.screen.width;
|
|
|
- this.imageWidth = window.screen.width * unit;
|
|
|
- this.imageHeight = this.$parent.canvasHeight * unit;
|
|
|
+ this.imageWidth = parseInt((window.screen.width * unit).toFixed());
|
|
|
+ this.imageHeight = parseInt((this.$parent.canvasHeight * unit).toFixed());
|
|
|
// this.$parent.canvasHeight = window.screen.height - (208 * unit);
|
|
|
var parmas = {
|
|
|
negativePrompt: noPromot,
|