Proper text layout dependent on background-color #271
-
Greetings. In stapling together my implementation of RmlUi's rendering interface, I've come across some bizarre functionality that I'm not sure is by design or a bug. My test program consists of RmlUi 4.3 from vcpkg with a full Rml::RenderInterface implementation, and displays a simple .rml file:
This is the expected output, which is accomplished with the above .rml and .rcss. However, when omitting the explicit Conversely, if Is this behavior intentional? Am I misinterpreting the sample code, which didn't seem to need a background-color explicitly specified to work? Any advice or guidance would be appreciated. Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hi, and welcome! The first thing I will say is that in no way should the layout depend on the I tested your code and got the same layout as in your first screenshot. When I changed the background-color of the different rules you mention there is no change to the layout, as we would expect. Only the background changes. Are you getting any log output / warnings? Please check that first. |
Beta Was this translation helpful? Give feedback.
Hi, and welcome!
The first thing I will say is that in no way should the layout depend on the
background-color
property. I think there must be something else quirky going on here, I have never seen this behavior.I tested your code and got the same layout as in your first screenshot. When I changed the background-color of the different rules you mention there is no change to the layout, as we would expect. Only the background changes.
Are you getting any log output / warnings? Please check that first.
Can you post a full example of a faulty render as well, so I can see if it reproduces here?