I noticed that the Flexible layout is producing some CSS that causes columns to shift outside the $content area. Pictured below is a simple 3-column flexible layout with a fixed left column, fixed right column and a fluid middle column. The left/right columns have a negative margin equal to its width as set the Panels UI. These should be set to 0, with both margins being applied to the fluid column.

This patch adjusts the margin/padding settings in flexible.inc to keep it all contained within the canvas.

Comments

merlinofchaos’s picture

Can you export a panel that demonstrates the problems you're seeing? I don't want to fix a problem I can't perceive.

rupl’s picture

StatusFileSize
new114.57 KB
new4.47 KB

Here you go, the panel export is attached along with another screenshot.

mirakolous’s picture

StatusFileSize
new9.07 KB
new8.08 KB

I have the same problem, but the patch did not work for me. I cloned the same panel page several times. Some of these cloned pages worked, and some had the margin issue. I have attached an exported panel for both a working and non-working page.

merlinofchaos’s picture

You would need to clear cache for the patch to have any effect, as the CSS is cached.

merlinofchaos’s picture

Status: Needs review » Fixed

I confirm with the export in #3 that a cache clear does indeed fix the problem with that export. Committed this fix.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

franzkewd’s picture

Status: Closed (fixed) » Active
StatusFileSize
new4.26 KB

I have to re open this since this patch (applied on latest 6.3.dev Sept 11 built) throws my panels off the screen to the left.
My panels was working fine until the previous 6.3.dev built. I fixed my panels on latest 6.3.dev Sept 11 by applying this patch in the opposite way.

merlinofchaos’s picture

Unfortunately this export has WYSIWYG markup in it, which corrupts the code. Silly wysiwyg. Can you disable wysiwyg on the export, and cut & paste that one instead?

franzkewd’s picture

StatusFileSize
new3.78 KB

My bad not re-checking the attachement.
This is the clean one.

merlinofchaos’s picture

Status: Active » Needs review
StatusFileSize
new2.45 KB

Try this.

franzkewd’s picture

Applied patch #10 on latest built 6.3.dev magically works.

Cheers

merlinofchaos’s picture

Status: Needs review » Fixed

Great. Committed to -dev!

pvasener’s picture

Version: 6.x-3.7 » 6.x-3.8
Status: Fixed » Needs work

I think this patch causes a problem because, since I upgraded to panels 3.8, the css is no longer added for my flexible panels when I view the nodes. It's ok if I preview them though. To confirm the bug, I replaced flexible.inc with the 3.7 version and everything went back to normal.

merlinofchaos’s picture

Status: Needs work » Fixed

Please file a new issue and link to this one.

Also 'needs work' is a really bad status to use, as items in 'needs work' tend to get ignored except by the people working on them. Which in this case would be nobody.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

  • Commit 558d543 on 7.x-3.x, master, pipelines, 7.x-3.x-i18n, 8.x-3.x by merlinofchaos:
    #869766: Fix occasional problem with flexible layout pushing the entire...