Visual Console Item: removed some warning messages

Former-commit-id: e498e29eda0f790669a3343265c7b923773482b0
This commit is contained in:
Alejandro Gallardo Escobar 2019-03-29 11:57:14 +01:00
parent 470d0b71d1
commit 8be5cc6a38
3 changed files with 2 additions and 15 deletions

View File

@ -41,13 +41,4 @@ describe("Group item", () => {
groupInstance.elementRef.getElementsByClassName("group").length
).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`
);
});
});

View File

@ -40,10 +40,8 @@ export default class Label extends Item<LabelProps> {
/**
* @override Item.resize
* 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.
this.childElementRef.style.width = `0`;
this.childElementRef.style.height = `0`;

View File

@ -110,10 +110,8 @@ export default class SimpleValue extends Item<SimpleValueProps> {
/**
* @override Item.resize
* 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.
this.childElementRef.style.width = `0`;
this.childElementRef.style.height = `0`;