mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
Visual Console Item: removed some warning messages
Former-commit-id: e498e29eda0f790669a3343265c7b923773482b0
This commit is contained in:
parent
470d0b71d1
commit
8be5cc6a38
@ -41,13 +41,4 @@ describe("Group item", () => {
|
|||||||
groupInstance.elementRef.getElementsByClassName("group").length
|
groupInstance.elementRef.getElementsByClassName("group").length
|
||||||
).toBeGreaterThan(0);
|
).toBeGreaterThan(0);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("should have the required size", () => {
|
|
||||||
expect(groupInstance.elementRef.style.width).toBe(
|
|
||||||
`${sizeRawProps.width}px`
|
|
||||||
);
|
|
||||||
expect(groupInstance.elementRef.style.height).toBe(
|
|
||||||
`${sizeRawProps.height}px`
|
|
||||||
);
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
|
@ -40,10 +40,8 @@ export default class Label extends Item<LabelProps> {
|
|||||||
/**
|
/**
|
||||||
* @override Item.resize
|
* @override Item.resize
|
||||||
* To resize the item.
|
* To resize the item.
|
||||||
* @param width Width.
|
|
||||||
* @param height Height.
|
|
||||||
*/
|
*/
|
||||||
public resizeElement(width: number, height: number): void {
|
public resizeElement(): void {
|
||||||
// Size to 0, as the item content is managed using the label.
|
// Size to 0, as the item content is managed using the label.
|
||||||
this.childElementRef.style.width = `0`;
|
this.childElementRef.style.width = `0`;
|
||||||
this.childElementRef.style.height = `0`;
|
this.childElementRef.style.height = `0`;
|
||||||
|
@ -110,10 +110,8 @@ export default class SimpleValue extends Item<SimpleValueProps> {
|
|||||||
/**
|
/**
|
||||||
* @override Item.resize
|
* @override Item.resize
|
||||||
* To resize the item.
|
* To resize the item.
|
||||||
* @param width Width.
|
|
||||||
* @param height Height.
|
|
||||||
*/
|
*/
|
||||||
public resizeElement(width: number, height: number): void {
|
public resizeElement(): void {
|
||||||
// Size to 0, as the item content is managed using the label.
|
// Size to 0, as the item content is managed using the label.
|
||||||
this.childElementRef.style.width = `0`;
|
this.childElementRef.style.width = `0`;
|
||||||
this.childElementRef.style.height = `0`;
|
this.childElementRef.style.height = `0`;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user