-
-
Notifications
You must be signed in to change notification settings - Fork 161
Lost-column/waffle float:right to last cycle unexpected outcome #328
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
Comments
@akoury I see where you're going with this. As a people pleaser, doing Open Source work on large projects is really tough. I want everyone happy. That said, thank you so much for this issue! You're the type of person that makes Open Source really fun! This is a really well thought out issue. If I knew this would cause any breaking changes I would have certainly done #218 as a major release. I'm sorry. My first thought is to make this a option for |
@peterramsing please dont apologize! your work here has been great and you are not even getting compensated for this, so know that everything you do is greatly appreciated. Regarding the issue: like i said, i could've made a pull request just removing the float right from both lost-waffle and lost-column files, however i think that would just make the previous issue #200 reappear, so i dont know if a toggeable option would be a perfect fit. Sorry that i don't have much to contribute regarding ideas on how to solve it, I am very new to this field, maybe @corysimmons has some ideas on what could be done hehe (I tried removing the float:right for testing and i see that issue #200 reappears, even in Chrome, not just Safari :( ) |
I'll look into a param and some more testing in the waffle's case. |
@peterramsing Why don't we break out all the params for these various things into their own properties (as well as keeping shorthand)? Lost keeps needing more params to help with various use cases, but lost-column-fraction: 1/4;
lost-column-gutter: 45px;
lost-column-cycle: 3; etc... is a lot more readable/composable. It'd let us tack these features on left and right (after discussing their value as a param of course). Really, the only way I see to address the plethora of use-cases is to add more params/settings/etc. /shrug |
I think that I'm going to remove the float as standard for You'll see this change in LostGrid v8. |
@peterramsing two questions:
Seems great so far! thanks for the awesome help |
That's correct. As for |
@peterramsing perfect! thanks again for doing such an awesome work |
Is this a feature request or a bug report?
Bug Report
What is the current behavior?
Regarding issue #200 which was solved in pull request #218 , a float:right was added to the last cycle of a column/waffle, which leads to a wrong display of elements
If it's a bug please provide the steps to reproduce it and maybe some code samples.
Just add any number of elements in a view, place a "lost-column: 1/4 2" (or a lost-waffle, with a cycle smaller than the denominator) and look at the outcome, the second "column" of elements gets pushed to the right side of the screen due to the float, instead of leaving the space that was specified in the 2nd cycle. This worked perfectly in versions prior to 6.7.0.
What is the behavior that you expect?
The behaviour present before 6.7.0, in which cycles dont get pushed to the right
What's the motivation or use-case behind changing the behavior?
Restore this great grid system's behaviour
What version of LostGrid, browser and browser version are affected by this issue? Did this happen in previous versions?
I checked it in Safari and Chrome on Mac, It did not happen before 6.7.0.
Anything else?
If this was done on purpose and you just wanted to change the way the grid works, then dont mind me (I just think that it was better before).
This is my html/scss
This is the outcome
If i remove the float:right to the last cycle, this happens (what i believe should happen)
I am not doing a pull request myself removing the float:right from the source because that would simply re-open issue #200
The text was updated successfully, but these errors were encountered: