'css width & height don't bind with @Hostbinding

I'm trying to dynamically bind css class with @HostBinding in a directive. Every thing seems to be working but in a closer look width and height property of a class are ommited. Eventualy component with binded class is kind of weird displayed. Not only two elements are displayed instead of one, but their size is wrong. I would be pleased for any sugestion. Below a link to project. stackblitz

By the way I've tried also with Renderer2, but the efect is the same.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source