I have a Horizontal StackView. I added my CustomView inside it as follow.
Horizontal StackView
CustomView
As you can see the left side is fine, but right side when