-
Notifications
You must be signed in to change notification settings - Fork 109
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
Column alignment issue #54
Comments
Can you let us know what browser you are running? Also be sure you are running the latest version of Singularity. We have had similar reports in the past and concluded they are browser rounding bugs. When I have time I will try to isolate this some more and try to find what is at fault. |
Sure Scott. I've tested it in Chrome 22.0.1229.94 and Safari 6.0.1 so far. I have Singularity 1.3.6 installed. Let me know if you need any other info. |
You have Singularity 1.3.6 installed? Can you double check that for us by running |
Sorry my mistake (i'm a little inexperienced with this), I was using gem --version singularity, but I now see that's not right. Here's my gem list... actionpack (3.2.8) |
Awesome, not a problem. You are on the most recent version of Singularity; good. |
Funny, I just came across this as well. It must have something to do with the grid-object's calculation of gutter. If you remove the gutter from the grid object... @include grid-objects(a, 12, $selector: "."); then the columns lay out consistently (though it appears to default to around a 5% gutter). |
I think this may be related to the fact I haven't looked at the grid objects since doing all of the multi-grid, new layout stuff. I think there's an issue in the backlog to make sure this works, which it sounds as if it doesn't work quite right. The default gutter, BTW, is .25 which may work out to about 5%, depending on how you set up your total grid. |
ok this helps, at least for the time being. thanks micah & snugug. |
Yeah @Snugug - i tracked it a bit further. The grid-span mixin doesn't work properly when you pass a gutter to it. This happens in grid-objects as well as when written manually @include grid-span(1, 2, $gutter-span:2%); |
Interesting, however it should be noted that gutters cannot be written in percentages, they need to be unit less numbers. On Thursday, October 18, 2012 at 1:42 PM, Micah Godbolt wrote:
|
Oh, not writing gutter in % certainly changes things :) I see that passing a gutter of .25 (as you said, the default value), gives the same result as passing nothing. So that part is confirmed. When you pass anything other than .25 it appears that the left margin updates properly, but the width of the span doesn't change. Yup, simple 4 column grid, each column is ~21% no matter the gutter size. |
Hmm, now that's interesting; I thought I had thought I had that working. Take a look at the, admittedly, somewhat spaghetti code that exists in |
Yeah, i tracked it down to the column-span function so far. It appears that the gutter value isn't even being passed in to get the width value. |
Haha, um, whoops? |
BOOM! Done. |
want me to push this fix up seperately? |
You can either pass it as a hotfix, or pass it w/the rest of your work and they'll all get merged together. Totally up to you. |
i'll push that up hotfix. The other change is going to require some documentation updates. People will need to rewrite their classes in the new format when extending. |
Oh man...I get to remember how to 'stash' :) |
oh nevermind. i haven't added the files to a branch yet. easy peazy. |
Sorry everyone for the comment spam. This has been fixed and pushed to Master. |
I'm experiencing a weird column alignment issue on a very simple 12 column grid.
.grid {
@include grid-objects(a, 12, 2%, $selector: ".");
}
a3-6 and a6-9 are aligned further to the right than they should be. they go off the proposed grid, because the margin-left calculation appears to be off.
The text was updated successfully, but these errors were encountered: