The 960 grid class is being added to the id=content div and id="blocks-system-main" div causing the content of id="content-content" div to be 20px more then it should be, overflowing into the 20px margin/padding/space between content-group div and sidebar second.
For eg. in a layout that has two 4 grid units sidebars, the grid16-8 class is added to the content-group div, to give the main content area a width of 480px. Then the inner class at content-inner-inner div reduces the width of the content area to 460px. But then the grid16-8 is also added to content div and blocks-system-main div which makes the actual content from the node.tpl to get a width of 480px, visually removing the space between the content area and the second sidebar.
| Comment | File | Size | Author |
|---|---|---|---|
| #14 | 1002072-no_space_bettween_gutter_and_sidebar-D7.patch | 4.05 KB | aquariumtap |
| #8 | 1002072-content-width.patch | 1.09 KB | IntoTheWoods |
| #4 | fusion.jpg | 25.1 KB | Pratheep |
Comments
Comment #1
muschpusch commentedI can confirm this bug.... Marking as critical because it makes the theme unusable without hacking fusion core files or CSS hacks...
Comment #2
apmsooner commentedI also confirm this bug. This theme is way to complex to figure out where the bug is exactly but it appears the grid class is overriding the style setting of 100%. Seems the grid class should not be applied that deep as its already applied at div #content-group. Shouldn't it not be applied anywhere deeper than that div?
Comment #3
Pratheep commentedI'm now using the D7 stable and the problem persists and I agree with muschpusch that this bug makes the theme practically unusable.
Comment #4
Pratheep commentedHere's a screenshot of a subtheme I did using Fusion. [Note: This theme doesn't override any tpl file from Fusion, only css.] You can see there is no margin between the content and the sidebar.
Comment #5
jamesrgaede commentedI also have this problem - using the D7 version, no skinr or anything. Content in content-content is running into the gutter.
Comment #6
IntoTheWoods commentedComing here from #1057014: D7/IE6 sidebar-second layout broken in Fusion Starter. In IE6, with the fixed grid layouts (12 or 16), with sidebar-second set to be to the right of the main content (i.e. either "Split Sidebars" or "Both Sidebars Last", blocks in sidebar-second drops below the main content. A similar issue occurs when "Both Sidebars First" is selected - blocks in sidebar-second stay in their correct column, but are vertically lower than the bottom of the main content.
Removing the gridXX-XX classes from #content and #block-system-main fix the issue in IE6 in at least one instance, so these issues appear closely related.
Comment #7
IntoTheWoods commentedI could be barking up the wrong tree, but I'm wondering if this bug is not related to:
Comment #8
IntoTheWoods commentedAdded a check to the block and region preprocess functions to return without changes if the region is set to content. This removes the grid class from #content and #block-system-main and seems to fix the issue. No idea about possible side effects.
Comment #9
Swebmas commentedIt's working. I Don't see any effects for the moment. Thanks again IntoTheWoods!
Comment #10
stephthegeek commentedThanks everyone, yes this is a big pain and going to the content block has made this whole content area even more nesty and complicated in D7. We're going to be talking about the best way to solve this next week at Drupalcon. Thanks for the input so far.
Comment #11
osopolarAny results from the discussion on Drupalcon?
+ subscribing
Comment #12
stephthegeek commentedYep, and we had some post-Drupalcon illness+vacation but this is top priority in the next few days.
Comment #13
mstiI confirm this bug. The solution proposed at #8 works for me.
#1113620: Content area resizes when adding a block
Comment #14
aquariumtap commentedAs mentioned in comment #7, Drupal 7 now has a mandatory content region that replaces the D6
$contentvariable in page.tpl.php. In the D6 branch of Fusion, we add extra wrappers to$contentto render it similar to regions. That D6 code was inherited in the D7 version of Fusion, which causes this display issue (no gutter space between the content region and sidebar).The patch proposed in #8 does work, and will be easier to apply if you've already started your D7 subtheme. Alternatively, or if you're just starting a new Fusion 7 subtheme, deleting some of the wrapping
<div>elements in page.tpl.php will get deeper to the root of the issue. This attached patch removes those wrapping elements from the starter theme's page.tpl.php:#content-group, #content-region, #content-inner, #content-content
This will fix the display issue in the standard starter theme, but the starter_lite theme still requires work. I'm working on that one.
Comment #15
akoepke commentedHi aquariumtap, I made the changes to my subtheme and it did fix some of the issues. One thing I noticed is that the margins are being applied twice to the content block.
I see the following Divs
The two inner classes both apply the margins so I end up with the wrong sized area for my content.
As a hack for now I have added the following to my CSS
Comment #16
aquariumtap commentedThe patch from #14 may cause problems with sidebar-second and fluid grid widths. I recommend updating Fusion to the latest version (as of 10 may 2011: the alpha release).
Comment #17
jeffschulerI was experiencing this issue as well.
Upgrading to the latest 7.x-1.x-dev seems to have addressed the situation for me.
Thanks aquariumtap!
An unintended result, however, is that the grid overlay columns have lost their gutters. I've just opened #1153598: Overlay grid missing gutters.
Comment #18
CandaceID commentedIs this a problem in other themes? Does the zen subtheme starter use the same 960 width class?
Am I hearing that there is only a fix in drupal 7 -- not 6?
Comment #19
cstalberg commentedI just ran into this issue with the latest version of Fusion Starter when using the Nodes in Block module which worked as advertised in Sidebar first but failed in Sidebar second (dumping the material below the Content region). Material in blocks display fine when placed in the Sidebar second region btw.
Comment #20
sheena_d commentedcstalberg, are you using Drupal 6 or 7? It is possible that the Nodes in Block module is adding some CSS that is interfering with the Fusion grid framework. Could you provide a link to your site demonstrating the issue for further investigation?