File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1304,12 +1304,12 @@ window.ComponentPlane = class {
1304
1304
1305
1305
makeModal ( ) {
1306
1306
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 ) {
1308
1308
width = window . innerWidth * this . OPTIONS . w - 18 ;
1309
1309
width += 'px' ;
1310
1310
}
1311
1311
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 ) {
1313
1313
height = window . innerHeight * this . OPTIONS . h - 25 ;
1314
1314
height += 'px' ;
1315
1315
}
You can’t perform that action at this time.
0 commit comments