Active
Project:
Drupal Commons
Version:
6.x-2.x-dev
Component:
Theme
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
11 Oct 2011 at 15:06 UTC
Updated:
23 Sep 2013 at 14:58 UTC
I'm seeing strange behaviour with the theme now I have a site whose ajax blocks are starting to fill up with content.
Pages look fine until you start browsing through pages in the ajax blocks. While normally the width of sidebar-last would be set by:
.grid16-5 {
width: 300px;
}Instead the grid16-960 styles totally disappear, leaving this setting from fusion core 'style.css' governing the width of #sidebar-last and #content-group:
.nested {
float: left;
margin: 0;
width: 100%;
}Meaning that both the main content and sidebar last fill the width of the page.
I'm seeing this behaviour both with and without css/js aggregation.
Comments
Comment #1
lightsurge commentedComment #2
lightsurge commentedIt may have been down to aggregation after all. I'm using the advagg module, and setting inline css aggregation to disabled seems to have fixed things for me.
Comment #3
lightsurge commentedI continued to have problems with ajax breaking layouts and JS, including with advagg disabled.
To fix this I just had to upgrade ajax_load to the latest dev release, which includes patch #1193578: Emulate theme('page') processing to obtain list of css/js files
Comment #4
lightsurge commentedComment #5
lightsurge commentedSpoke too soon... still get superfish errors, but not as 'badly' as before... it used to partially break the appearance of the menus... but now all looks well, apart from an error message on internet explorer (only internet explorer) when ajax is triggered and only when aggregated. Error is "Object doesn't support this property or method" related to this code:
Comment #6
lightsurge commentedAlso getting Superfish errors on Chrome. Slightly different, again it only happens after an ajax call has occurred and when JS is aggregated. With chrome the error is only triggered when interacting with the menu, i.e. hovering. I get "cannot read property 'hoverClass' of undefined" which is blown up by this div in the page:
<div id="block-commons_profile-image_links" class="block block-commons_profile odd first grid16-0">Unless Chrome is giving me bogus information it looks the superfish menu is trying to alter elements in the page?
also get "cannot read property 'delay' of undefined" which blows up at this point in the JS:
Comment #7
ezra-g commentedComment #7.0
ezra-g commentedmaking better sense