-
-
Notifications
You must be signed in to change notification settings - Fork 21.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix PopupMenu doesn't respect its ScrollContainer's margins #87462
Conversation
205df2c
to
30a41cb
Compare
Why take the stylebox specifically into account, and not just the minimum size of the node itself, which should already include the stylebox? |
I didn't expect this question! but the answer is in the underlying line, why it's taking in mind the I don't know what's the best way to fix this issue, but my project needs some margins by default for the |
I think the reason is that PopupMenu already has its own panel style and it's not expected that ScrollContainer will have another one. |
The best fix is to override the |
39b15f0
to
0bcc0e9
Compare
a72b26d
to
ca64814
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left some comments, otherwise looks fine.
ca64814
to
d3e36d9
Compare
while testing i have found some bugs related to items and size and it took me a long time to make sure that the popup menu will work fine when changing the item's I have noticed that the ScrollContainer is no longer drawing the scroll over it's children, and it adds the margins automatically for the Scroll Bar, so I have removed the extra space used for the Vertical Scroll Bar since it will be added automatically when it's visible. After applying the stylebox directly to the |
Thanks for reminding, I actually forgot to test the scrollbar 🤦♂️
|
I have found that this issue presents in all github windows builds, Edit: my branch wasn't rebased and the issue appeared after rebasing.
Fixed:
Fixed another two issues:
|
15b879f
to
ee23d01
Compare
Please have a look on this #88392 (comment) |
Needs rebase after #86952 was reverted. |
ee23d01
to
c26710a
Compare
c26710a
to
7884d63
Compare
Thanks! |
…tainer's margins"
…tainer's margins"
…tainer's margins"
…tainer's margins"
…tainer's margins"
Fixes #87461
Removed the
MarginContainer
and applied thePopupMenu
panel style to theScrollContainer
.This results in the same old behavior, instead of applying the panel's content margins to the margin container and drawing the panel style manually.
Removing the include of the margin container header file has resulted in errors in 8 other files which was depending on it, so I have included the header in each one of them.