-
Notifications
You must be signed in to change notification settings - Fork 111
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
Element content not rendered when using Element.scrollbarY inside of an Element.inFront attribute #326
Comments
I experimented a little bit with the ellie. I found out, that the I have written a short css which will override with /* Workaround for: https://github.com/mdgriffith/elm-ui/issues/326
Any direct element inside Element.behindContent (.nb.bh) with a vertical scrollbar and is not filling in height
will again have the flex-shrink set to 0, which would be otherwise set to 1 by the .s.sby.e alone.
This will also be applied for Element.inFront (.nb.fr), Element.below (.nb.b), Element.onLeft (.nb.ol),
Element.onRight (.nb.or).
*/
/* 2021-10-28 12:21: Added also rules for Element.scrollbars (.sb),
because .sby is only for Element.scrollbarY. I think for
Element.scrollbarX is no fix necessary. */
.nb.bh > .s.sby.e:not(.hf),
.nb.bh > .s.sb.e:not(.hf),
.nb.fr > .s.sby.e:not(.hf),
.nb.fr > .s.sb.e:not(.hf),
.nb.b > .s.sby.e:not(.hf),
.nb.b > .s.sb.e:not(.hf),
.nb.ol > .s.sby.e:not(.hf),
.nb.ol > .s.sb.e:not(.hf),
.nb.or > .s.sby.e:not(.hf),
.nb.or > .s.sb.e:not(.hf)
{
flex-shrink: 0;
} See the updated ellie with the workaround applied here: https://ellie-app.com/fH9XjxS9mw5a1 I have not tested this outside of this ellie and have not checked if it would break other stuff. At this point of writing i remembered about the |
I have updated the css in my post above. It has only worked with |
Yes the fix works fine now thanks @Yarith ! |
We set a height of 550px but we get an effective height of 6px (= border width) I believe because the content isn't rendered.
The issue happen whenever you give Element.scrollbarY or Element.scrollbars to an element inside of an Element.below, onRight, onLeft, behindContent or inFront attribute.
I made an ellie as explicit as I could to show the issue.
Expected behavior
The height set by Element.height should prevail in any case.
The text was updated successfully, but these errors were encountered: