if (this.widthUnit == '%') {
                    this.containerDiv.style.width =
                        parentNode.offsetWidth * (this.width / 100) + 'px';
                }