Canvas inside ContainerControl draws outside

Hi everyone.

I placed a Canvas inside a ContainerControl and draw the picture inside via Paint-Event. I also placed some other Controls inside the ContainerControl. As you can see on the Screenshot, the Canvas is the only Control which draws over the current ContainerControl measure. Why? This was tested under Fedora Linux. It runs fine under macOS. I played around and turned the Transparent and DoubleBuffer Property of the Canvas on and off, but nothing changes. Whats going on here?

You probably have a linux distro with a wayland backend. I have such troubles using elementary os.

It’s like controls and/or the main window content is offset from your coordinates.