Support for width() height() as read attribut + handle the resize event