Update element dimensions
Remove useless styles