You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think what is happening here is due to tables in RmlUi not supporting shrink-to-fit (or fit-content/max-content) width. So when you put a table in such a context (here using a content-based flexbox), the table width is simply set to zero, which gives the above result due to overflow.
Here is a discussion about this, both for flexboxes and tables: #552 (comment)
Note that, since then, support for this has been added to flexboxes (but not tables): #559
I am closing this one to clean up the issues a bit. I think for now, we have documented the behavior better (thanks for the PRs!).
There is still room for some general improvements on the library side, particularly for supporting shrink-to-fit on tables. Maybe, if we actually want that in terms of performance and complexity. But if we do, we should rather open a new focused issue to discuss that in particular.
I've created an example in the
tutorial
directory. Therml
file:The
rcss
file:The result is correct:
But if we add
display: flex;
to body style, the table columns are overlapped:flex-direction: column;
fixes this, butalign-items: flex-start;
breaks it again.The text was updated successfully, but these errors were encountered: