Let component draw its own bounding box

I would expect `dy` to not need a `px` at the end, could you explain why we need it here?