File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -118,7 +118,7 @@ window._component = {
118
118
let w , h ;
119
119
div . className = 'dlp-alert' ;
120
120
this . _alert_documents . forEach ( ( D ) => {
121
- D . style . top = parseInt ( D . style . top ) - 60 + 'px' ;
121
+ D . style . top = parseInt ( D . style . top ) - 60 + 'px' ;
122
122
} ) ;
123
123
this . _alert_documents . push ( div ) ;
124
124
if ( ! dom ) {
@@ -1305,12 +1305,14 @@ window.ComponentPlane = class {
1305
1305
makeModal ( ) {
1306
1306
let width = this . OPTIONS . w ;
1307
1307
if ( this . OPTIONS . w . toString ( ) . indexOf ( 'px' ) === - 1 && this . OPTIONS . w . toString ( ) . indexOf ( '%' ) === - 1 ) {
1308
- width = window . innerWidth * this . OPTIONS . w - 18 ;
1308
+ width = window . innerWidth * this . OPTIONS . w ;
1309
+ if ( width >= ( window . innerWidth - 18 ) ) width = window . innerWidth - 18 ;
1309
1310
width += 'px' ;
1310
1311
}
1311
1312
let height = this . OPTIONS . h ;
1312
1313
if ( this . OPTIONS . h . toString ( ) . indexOf ( 'px' ) === - 1 && this . OPTIONS . h . toString ( ) . indexOf ( '%' ) === - 1 ) {
1313
- height = window . innerHeight * this . OPTIONS . h - 25 ;
1314
+ height = window . innerHeight * this . OPTIONS . h ;
1315
+ if ( height >= ( window . innerHeight - 25 ) ) height = window . innerHeight - 25 ;
1314
1316
height += 'px' ;
1315
1317
}
1316
1318
let margin = this . OPTIONS . top + ' ' + this . OPTIONS . left ;
@@ -2485,4 +2487,4 @@ window.ComponentCascadeLine = class {
2485
2487
this . dimensional_data [ stack ] . splice ( d , 1 ) ;
2486
2488
} ) ;
2487
2489
}
2488
- } ;
2490
+ } ;
You can’t perform that action at this time.
0 commit comments