mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 08:14:38 +02:00
Visual Console Refactor: now the item size can be omitted
Former-commit-id: 952e2f44613528fc91e85c8e76e505a69f73dbbc
This commit is contained in:
parent
a9c2bb9a31
commit
b3bcc888df
@ -337,8 +337,8 @@ abstract class VisualConsoleItem<Props extends ItemProps> {
|
|||||||
*/
|
*/
|
||||||
protected resizeElement(width: number, height: number): void {
|
protected resizeElement(width: number, height: number): void {
|
||||||
// The most valuable size is the content size.
|
// The most valuable size is the content size.
|
||||||
this.childElementRef.style.width = `${width}px`;
|
this.childElementRef.style.width = width > 0 ? `${width}px` : null;
|
||||||
this.childElementRef.style.height = `${height}px`;
|
this.childElementRef.style.height = height > 0 ? `${height}px` : null;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user