Skip to content

Commit eb47468

Browse files
author
hikki
committed
v4.7
1 parent be50364 commit eb47468

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

resources/assets/component.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1304,12 +1304,12 @@ window.ComponentPlane = class {
13041304

13051305
makeModal() {
13061306
let width = this.OPTIONS.w;
1307-
if (this.OPTIONS.w.toString().indexOf('px') === -1 || this.OPTIONS.w.toString().indexOf('%') === -1) {
1307+
if (this.OPTIONS.w.toString().indexOf('px') === -1 && this.OPTIONS.w.toString().indexOf('%') === -1) {
13081308
width = window.innerWidth * this.OPTIONS.w - 18;
13091309
width += 'px';
13101310
}
13111311
let height = this.OPTIONS.h;
1312-
if (this.OPTIONS.h.toString().indexOf('px') === -1 || this.OPTIONS.h.toString().indexOf('%') === -1) {
1312+
if (this.OPTIONS.h.toString().indexOf('px') === -1 && this.OPTIONS.h.toString().indexOf('%') === -1) {
13131313
height = window.innerHeight * this.OPTIONS.h - 25;
13141314
height += 'px';
13151315
}

0 commit comments

Comments
 (0)