@@ -314,7 +314,7 @@ export class Wnd {
314
314
this . resetLayout ( layout ) ;
315
315
}
316
316
317
- private resetLayout ( layout : Layout ) {
317
+ public resetLayout ( layout : Layout ) {
318
318
if ( layout . type === "center" || layout . type === "normal" || layout . children . length !== 1 ) {
319
319
return ;
320
320
}
@@ -324,14 +324,17 @@ export class Wnd {
324
324
window . liandi . centerLayout . element . style . width = ( window . liandi . centerLayout . element . clientWidth - 200 ) + "px" ;
325
325
layout . element . style . width = "206px" ;
326
326
} else if ( layout . type === "right" && layout . element . clientWidth < 7 ) {
327
- window . liandi . centerLayout . element . style . width = ( window . liandi . centerLayout . element . clientWidth - window . innerWidth / 3 ) + "px" ;
327
+ const rightWidth = window . innerWidth / 3
328
+ window . liandi . centerLayout . element . style . width = ( window . liandi . centerLayout . element . clientWidth - rightWidth ) + "px" ;
329
+ window . liandi . rightLayoutWidth = rightWidth
328
330
} else if ( layout . type === "top" && layout . element . clientHeight < 7 ) {
329
331
window . liandi . centerLayout . parent . element . style . height = ( window . liandi . centerLayout . parent . element . clientHeight - 200 ) + "px" ;
330
332
layout . element . style . height = "206px" ;
331
333
} else if ( layout . type === "bottom" &&
332
334
( layout . element . clientHeight + window . liandi . centerLayout . parent . element . clientHeight + window . liandi . topLayout . element . clientHeight > window . innerHeight
333
335
|| layout . element . clientHeight < 7 ) ) {
334
336
window . liandi . centerLayout . parent . element . style . height = ( window . liandi . centerLayout . parent . element . clientHeight - 200 ) + "px" ;
337
+ window . liandi . bottomLayoutHeight = 200
335
338
}
336
339
} else if ( layout . children [ 0 ] . children . length === 1 ) {
337
340
if ( layout . type === "left" || layout . type === "right" ) {
0 commit comments