Tooltip: Rely on`getBoundingClientRect` for `width` and `height`

Fixes #14553.