-
Notifications
You must be signed in to change notification settings - Fork 312
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
Child doesn't get clipped if width/height is 100% #650
Comments
Thanks for reporting. This one is a known limitation actually, and the reasoning is the same as with absolutely positioned elements which has been reported previously: #235. This situation is also exactly why we introduced If we instead made it so that transforms could affect layout, performance would suffer a great deal, particularly when combined with animations. I'm sure there are some ways we could potentially work around it, without the performance degradation in all situations. But it's not something I can prioritize right now.
That's a cool idea, I like it. |
Ah, okay, that makes sense! I tried to search for this issue but my keywords weren't finding it. If it's intentional, I would just close this issue then; could we add a note on either https://mikke89.github.io/RmlUiDoc/pages/cpp_manual/animations_transforms.html or https://mikke89.github.io/RmlUiDoc/pages/rcss/animations_transitions_transforms.html ? These are the two pages I referred to to see if I was missing some sort of limitation about A player executable would be super useful, yeah. I've gotten mileage out of loaddocument but it's still pretty limited. Would be neat to be able to just make a zip containing .rml/.rcss/.tga files and be able to drag it into the player, and just posting that zip on github when reproducing bugs (or just a single .rml file if the player supports base64 URIs for embedding images) |
Good idea, this should be better documented indeed. I've made some notes in the above commit. Thanks for the suggestion, that would be quite neat, I've made a note of it for now. |
Closing this one, as I believe it has been resolved with the updated documentation. |
This is an an oddly specific situation, but when a transformation is applied that causes an elements' bounds to overflow, it will erroneously not pick up that it needs a clipping context.
A minimal reproduction is available with this file loaded into
load_document.exe
in Rml 5.0 and 6.0 (note that I'd love for there to be a genericplayer
that we could use just to drag .rml files into and preview them instantly. Would make making bug reports so much easier!)Note that even though the objects' real bounds expand outside of the parent, it doesn't pick up that it has overflowed. In HTML, the behavior is to clip it; https://codepen.io/Paril/pen/qBzPpZW
I can work around this with
clip: always
but it seems like it's just using the inner objects' pre-transformed width/height rather than post-transformed box for checking if overflow needs to happen.The text was updated successfully, but these errors were encountered: