Don't have a lot of time. Here is a quick patch for 5.x-1.x. I had some weird spacing in Panels where everything was double-spaced, so this patch may be bunk. Let me know.

Comments

RobRoy’s picture

StatusFileSize
new24.45 KB

Fixed one div thing, for 5.x-1.x still.

RobRoy’s picture

StatusFileSize
new24.39 KB

Sorry, these are pretty sloppy. I had some IE7 fixes in some of them, but might need another IE7 passthrough. That's what the 47% stuff is for in twocol_stacked. Hopefully someone else can do that, if not I'll gve it another go when time permits.

Here is a 5.x-2.x slopfest.

merlinofchaos’s picture

Hmm. For some reason, this patch fails to apply, though I can't figure out why. I'm wondering if it's cr/lf translation going on somewhere that's throwing off diff, because the patch doesn't look quite properly formed.

xen’s picture

StatusFileSize
new7.64 KB

Try this one instead, looking through RobRoys patch, I seem to be doing the same thing. Hopefully I've made the patch properly.

The problem is in the CSS selectors:

.panel-2col-stacked div div {
  margin: .5px;
}

which matches not only the div containing the panel, but all nested divs. Using the child selector '>', fixes the issue in Firefox and other browsers, but IE6 doesn't understand it. Adding a class for the panel content div and selecting on that instead, works for all browsers.

Patch against 5.x-1.2.

recidive’s picture

It seems the problem with RobRoy's patches is that almost every single line of layouts code has a trailing space and his patches get rid of them.

Xen.dk's patch uses another approach. I think RobRoy's one is better.

A big +1 to this, I had to hack panels module on my projects to get rid of those margins.

recidive’s picture

StatusFileSize
new16.62 KB

I was partially wrong about the trailing spaces stuff, it applies only to css files.

It seems panels .inc files has Windows line endings. I've rerolled the patch so you can clearly see the changes on those files.

catch’s picture

Status: Needs review » Closed (won't fix)

This has all changed anyway, so won't fixing.