I am using OpenChurch Theme Starter which is a subtheme of OpenChurch Theme which is in itself of subtheme of Fusion. I am trying to use contexts to hide the sidebars when viewing galleries and calendars, but the widths of the main_group and the content_group are not adjusting correctly to the hidden sidebars.

The nested region main_group still prints the width as (grid_width - sidebar_first)

The nested region content_group still prints the width as (grid_width - sibebar_first - sidebar_second)

When the context hides the sidebar_first and sidebar_second regions those widths should be printed as the full grid_width.

I can't seem to figure out where these variables are being set. Can someone please help?

Comments

knsheely’s picture

This seems to be the same issue http://drupal.org/node/1298916, but it includes a patch for an earlier version. Not sure if that patch can be applied the same way to the 7.x-2.0-beta version. I'm going to do some testing along the same lines.

knsheely’s picture

StatusFileSize
new771 bytes

Okay...I had to apply the patch a little differently than it is written at http://drupal.org/node/1298916, but it worked. This is my first attempt at a patch so I'm not sure I got the syntax completely right.

esmerel’s picture

Status: Active » Needs review

Setting this to needs review so the testbot might give it a shot.

Status: Needs review » Needs work

The last submitted patch, context-disable-region-reaction.patch, failed testing.

Poieo’s picture

Issue summary: View changes

This could be caused by #1172280: Fusion themes render blocks twice. If not, this issue will have to be addressed as well with the fix referenced in that issue.

Poieo’s picture

Version: 7.x-2.0-beta2 » 7.x-2.x-dev
Poieo’s picture

Status: Needs work » Needs review
StatusFileSize
new762 bytes

Slightly modified, seems to be working as expected.

  • Poieo committed b9210a5 on 7.x-2.x
    Issue #1673064 by knsheely, Poieo: Adjustments for context.
    
Poieo’s picture

Status: Needs review » Closed (fixed)