Hi Folks,

I tried to find an answer to this problem in former issues, but to no avail unfortunately.

When trying to use fixed width, total widths are only allowed to be 100px, so two columns could only be something like 25px and 75px. It seems that the fluid width with percentage numbers are somehow still in play, even though fixed width is selected. Can anyone reproduce this?

It also causes a warning:

warning: Division by zero in .../sites/all/modules/panels/plugins/layouts/flexible/flexible.inc on line 624.

Please see attached picture for further clarification.

CommentFileSizeAuthor
#2 Bild 3.png78.44 KBtheusualsuspect
#2 Bild 4.png52.71 KBtheusualsuspect

Comments

merlinofchaos’s picture

No attachment.

My suspicion is that this only happens if you try to add a 'fixed' item without first adding a 'fluid' item to be the center unit.

theusualsuspect’s picture

StatusFileSize
new52.71 KB
new78.44 KB

your suspicion was totally on target. It worked when I placed a fluid region in between those fixed columns. I could perfectly set up the width to my liking. Is that the intended behaviour, IMHO its a little confusing and might be considered in future releases.

I attached 2 pictures now, the first one with the fixed width problem, the second with your proposed solution. Thanks for your help.

merlinofchaos’s picture

I would not say it's the intended behavior, it's a consequence of the code I use to let fixed & fluid coexist beside each other. There maybe something I can do to accommodate the 'no fluid at all' design, but I think it may be easier to require the first component to be fluid. You can always leave it empty.

One other missing feature, while we're on it, is that the 'canvas' currently is set to always fluid. It needs to be able to have a width specified, which is a similar problem, possibly.

theusualsuspect’s picture

Coding Standards-wise there is also the empty div to be considered. But well now there is a workaround and Panels works for me, so I couldn't care less. And the fluid canvas is always constrained by the width of the parent content div. So I wouldn't say this is a problem.

However, I wonder why you take it upon yourself to implement such complex features as letting fixed & fluid coexist, because as far as I remember in Panels 2, there was either this or that and that was all-right.

merlinofchaos’s picture

Because sidebars are often fixed width, and I really wanted to be able to do layouts with sidebars.

merlinofchaos’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

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