Closed (fixed)
Project:
Fusion
Version:
6.x-1.0-beta2
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Reporter:
Created:
11 Nov 2009 at 12:21 UTC
Updated:
16 Dec 2009 at 18:30 UTC
HI!
not 100% sure this is a CSS bug.
I have the theme set to use fluid grid layout with 85% width.
To make more room for the editors, I have disabled all sidebar blocks on node/add and node/edit.
What happens is that since we have a div nesting like this:
...
<div class="main row grid16-16" id="main"> <-- width:85%
<div class="main-inner inner" id="main-inner">
<div class="sidebar-first row nested grid16-4" id="sidebar-first"> <-- width:75% * 85%
(...)
<div class="main-group row nested grid16-12" id="main-group"> <-- width:25% * 85%
(...)
when removing the sidebar blocks, we get:
...
<div class="main row grid16-16" id="main"> <-- width:85%
<div class="main-inner inner" id="main-inner">
(...)
<div class="main-group row nested grid16-16" id="main-group"> <-- width:85% * 85%
(...)
resulting in a actual width of 72.25% of the viewport.
However, this can be easily fixed overriding CSS.
Again, not sure if this is a problem of my setup, but if it's a general bug it would be great to fix it, if possible.
Thank you
Comments
Comment #1
bohz commentedI mistakenly switched widths in the first code block above, it should be:
Comment #2
jeremycaldwell commentedMoving this over to the Fusion issue queue as all of the widths and sizing are handled by Fusion and not sub themes like Acquia Prosper. Thanks for the information about this too, will look into it.
Comment #3
sociotech commentedbohz,
Good catch! That is indeed a css error. Fortunately it should be a pretty easy fix. Add the following lines to the bottom of your grid16-fluid.css file in Fusion Core (right after the "fluid grid width theme settings" section):
Let me know if that fixes the issue for you. It should be a cross-browser fix down to IE6 as well.
Once the fix is confirmed, this will go into the next beta of Fusion Core.
Thanks.
Comment #4
sociotech commentedHmm, upon further reflection, there are other instances of elements having widths of grid16-16 that need this fix for a fluid grid.
For instance, if you have a region with multiple blocks and you set them all to grid16-16 (100%) in order to make them drop under each other and stack vertically, you'd have the same reduced width problem.
So, here's a more universal fix that should take care of any 100% width element contained within a top-level row that has been set to less than 100% (e.g., 95%, 90%, 85%):
Give it a shot and let me know if it works for you.
Thanks.
Comment #5
bohz commentedThanks a lot sociotech!
I did try the first fix and it worked for me.
Sorry for replying a little late.
I will test the second snippet tomorrow.
cheers
Comment #6
sociotech commentedFixed in beta 3 release.