Add Component.width() and Component.height().

Close #880.
Use the getter instead here?