@@ -991,8 +991,8 @@ window.ComponentLine = class {
991
991
makeFoot ( foot ) {
992
992
let tfoot = document . createElement ( 'tfoot' ) ;
993
993
tfoot . className = 'dlp-tfoot' ;
994
+ tfoot . insertAdjacentHTML ( 'afterbegin' , `<tr class="dlp-tr"></tr>` ) ;
994
995
if ( ! this . OPTIONS . insert ) {
995
- tfoot . insertAdjacentHTML ( 'afterbegin' , `<tr class="dlp-tr"></tr>` ) ;
996
996
this . TABLE_DOM . appendChild ( tfoot ) ;
997
997
return ;
998
998
}
@@ -1303,17 +1303,15 @@ window.ComponentPlane = class {
1303
1303
}
1304
1304
1305
1305
makeModal ( ) {
1306
- let width ;
1307
- if ( this . OPTIONS . w . toString ( ) . indexOf ( '.' ) !== - 1 ) {
1308
- width = ( window . innerWidth * this . OPTIONS . w ) + 'px' ;
1309
- } else {
1310
- width = this . OPTIONS . w ;
1311
- }
1312
- let height ;
1313
- if ( this . OPTIONS . h . toString ( ) . indexOf ( '.' ) !== - 1 ) {
1314
- height = ( window . innerHeight * this . OPTIONS . h ) + 'px' ;
1315
- } else {
1316
- height = this . OPTIONS . h ;
1306
+ let width = this . OPTIONS . w ;
1307
+ if ( this . OPTIONS . w . toString ( ) . indexOf ( 'px' ) === - 1 || this . OPTIONS . w . toString ( ) . indexOf ( '%' ) === - 1 ) {
1308
+ width = window . innerWidth * this . OPTIONS . w - 18 ;
1309
+ width += 'px' ;
1310
+ }
1311
+ let height = this . OPTIONS . h ;
1312
+ if ( this . OPTIONS . h . toString ( ) . indexOf ( 'px' ) === - 1 || this . OPTIONS . h . toString ( ) . indexOf ( '%' ) === - 1 ) {
1313
+ height = window . innerHeight * this . OPTIONS . h - 25 ;
1314
+ height += 'px' ;
1317
1315
}
1318
1316
let margin = this . OPTIONS . top + ' ' + this . OPTIONS . left ;
1319
1317
let html = `<div id="dlp-plane" class="dlp-plane-gauze"><div style="width: ${ width } ;margin: ${ margin } "><div class="dlp plane-header"></div><div class="plane-body dlp-scroll" style="height:${ height } ;"></div></div></div>` ;
0 commit comments