When Fusion is calculating grid widths on regions, it loads the blocks in each region from core block placement and blocks placed with the context module.

The context module has a region reaction which disables a region by removing blocks from the page array. Since Fusion counts the blocks by directly accessing them from core and context the region disable reaction doesn't notify Fusion that it is disabled. A solution for this is to alter the fusion_core_block_list() function to also check the region reaction.

I have included a patch needs testing.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jamiecuthill’s picture

Actually, here is a patch for the current state of 1.x-dev

esmerel’s picture

Assigned: Unassigned » aquariumtap
cbeier’s picture

Thanks for the patch. The patch from comment #1 worked for me.

Status: Needs review » Needs work

The last submitted patch, fusion_block_list_region_reaction-1298916-1.patch, failed testing.

aquariumtap’s picture

Assigned: aquariumtap » Unassigned
dsdeiz’s picture

Status: Needs work » Needs review
FileSize
760 bytes

Hi, had time. Patch attached.

Status: Needs review » Needs work

The last submitted patch, context-region-disabled-reaction-1298916-6.patch, failed testing.

dsdeiz’s picture

Status: Needs work » Needs review
FileSize
735 bytes

Hm, weird.

Status: Needs review » Needs work

The last submitted patch, context-region-disabled-reaction-1298916-7.patch, failed testing.

dsdeiz’s picture

Status: Needs work » Needs review
FileSize
773 bytes

One last try. I have no idea which branch the bot is patching the file.. :(

dsdeiz’s picture

My bad, didn't notice 'region' in context_get_plugin('reaction', 'region').

Poieo’s picture

Issue summary: View changes
Status: Needs review » Closed (duplicate)

Marking this as a duplicate of #1673064: Nested region's width does not adjust correctly when a context hides a region (sidebar_first and sidebar_second) since 7.x-1.x is no longer supported and that issue has a patch for the current branch.