-
-
Notifications
You must be signed in to change notification settings - Fork 97
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
Problem setting page height with elm-ui #5
Comments
Hello @danmarcab, thanks for taking the time to make the issue! This is definitely something I'm going to fix. I actually realized a few days ago that I should be able to accomplish what I need to with just a simple empty, display: none div that is above the main rendered content, not surrounding it. In case you're curious and didn't guess it already, the reason for the wrapper div is to allow me to check when the view function has completed and rendered after each url change (there's no other way to know for sure). When the url changes, I register url hover listeners in JS to lazy load when you're about to click a link. I should have a fix for this shortly! |
That's great @dillonkearns ! Also thank you for the explanation, you are definitely doing some cool stuff here! 👍 |
Hey @danmarcab! So I pushed a fix for this to master. I'll cut a new release soon. Here's the change: 47c1f92 |
Great! Thank you! |
Hello @danmarcab, I've pushed the fix! Just install the latest NPM package version (1.0.39) and you'll be good to go! Thanks again for reporting the issue! Let me know if you run into anything else. |
I have difficulties installing the latest npm package version (because I'm a noob), thus would love to see the fix in the published version which I can install using Thanks for your great work! |
@jmjr right now some elm code is copy-pasted by the npm package. So you don’t need to update your elm package version. Just go into your package.json, and change the version of elm-pages to be 1.0.39 and that will take care of it. |
Hi! First of all thank you for making this! I am excited to use it for my personal page.
I've run into an small issue when using
elm-pages
withelm-ui
.I wanted to make
Element.layout
take the full height of the page usingElement.width Element.fill
. This is something I've done many times withelm-ui
.Digging a bit I found
elm-pages
I found it is wrapping the user provided view with adiv
here:elm-pages/elm-package/src/Pages/Platform.elm
Lines 124 to 129 in 4b9b3a5
elm-ui
is setting the height to 100%, but having a parent element makes it only taking the content height.I am not sure what's the best way to proceed or even if it's something you should consider fixing, but I thought it was good to let you know!
Thank you again!
The text was updated successfully, but these errors were encountered: