get client width and height instead of attribute