bug: continue to check size change when force=

This commit is contained in:
mathuo 2024-07-17 19:53:55 +01:00
parent e86155adf4
commit bdf286103f
No known key found for this signature in database
GPG Key ID: C6EEDEFD6CA07281

View File

@ -328,7 +328,7 @@ export abstract class BaseGrid<T extends IGridPanelView>
public layout(width: number, height: number, forceResize?: boolean): void {
const different =
forceResize ?? (width !== this.width || height !== this.height);
forceResize || width !== this.width || height !== this.height;
if (!different) {
return;