-
-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
GetContentRegionMaxAbs / GetContentRegionAvail incorrect when within end column #2666
Comments
Hello, As with your previous issue, please clarify what you expect is "correct" and why. The current behavior is designed so that all columns are of equal width and have equal amount of available space. Based on this criteria, your proposed fix would be incorrect. It may be misleading because Columns currently don't have an easy way to display outer borders (on the left and the right), something with the upcoming Tables/ColumnV2 system will allow more easily. |
Hello, Yes I understand, I could be much clearer. Just to clarify, I think this is a minor issue / perhaps just a taste thing and doesn't necessarily need changing, depending on your view. Also, maybe I am using the wrong layout mechanism for what I am trying to do. What i would expect: My actual use case (with the suggested code change as above): Perhaps the problem is more that I am using column layout and thats not really the best way to achieve what I am trying to do? |
Let me investigate, I looked at this and there's definitively a larger bug than that with how |
One of the problem this was trying to solve was to ensure that the clipping rectangle width would match. So if you have large (too wide) items in every column, they would appear clipped the same way. I made two fixes now, and one pushes the right-most up to the clipping region so we're saving WindowPadding.x*0.5 (4 pixels with the default style). There's still another gap of WindowPadding.x*0.5 (4 pixels) + the fact that if you have a scrollbar and your ScrollbarBg is transparent it looks like there's a little more space on the right side (2-3 pixels) + the fact that with a scrollbar the outer window border will cover the left side of the contents area but not the right side (an extra +1 pixel). I would like to get rid fo the half-window-padding-clipping thing eventually but that'll require other changes. (I like your screenshot but I have absolutely no idea what to look for in it. I cannot even see a column delimiter in that screenshot.) |
thank you for the fixes. (My screenshot is our skeletal animation / pose editor. The styling has some lines hidden and most margins set quite small. We have custom icon buttons, and render target widget which uses a persistent render target object for containing the actual render target and input callbacks but otherwise runs as immediate.) |
One of the project i'm working with seems to have detected a regression caused by the changes I made yesterday, so I'm opening this again until they are fixed. |
Should be fixed now! |
It's me again,
Really minor issue, GetContentRegionAvail returns a region that is a touch too narrow when inside the end column, as padding is removed from the back edge.
I would suggest simply checking we are not in the end column.
I hope this helps!
thanks
Please consider changing to:
The text was updated successfully, but these errors were encountered: