Fixes #17229. When used inside a ScrollableView, the Overlay no longer appears at a wrong location thus being invisible
(cherry picked from commit cb8bc433d711a028f22f051c4a0e55d318cbb39a)