Closed (outdated)
Project:
Panels
Version:
6.x-3.9
Component:
Plugins - layouts
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
20 Oct 2010 at 21:55 UTC
Updated:
25 Feb 2016 at 03:23 UTC
Jump to comment: Most recent
Comments
Comment #1
merlinofchaos commentedThat's a very good question. It's possible that it's enforcing some padding, which would reduce the available space, but I think there may be a calculation error or something somewhere as well. I think someone else has reported this, and I've been unable to figure out precisely what's going on.
Comment #2
apmsooner commentedYeah its definitely taking the set canvas width I put in. I took out the column and region paddings in that section and that has no effect so the -15px is definitely coming from the layout designer.
Comment #3
jim kirkpatrick commentedI'm getting this too - there's always 12-16px I cannot seem to get, despite telling the layout editor all the correct widths.
However, I notice that if I the CSS selector
.panel-flexible-edit-layout .panels-flexible-row-inside(line 255 in panels/plugins/layouts/flexible/flexible-admin.css) has these CSS rules:border: 1px dotted blue; margin: 5px;And those values add up to 12px (5+1+1+5).If I disable the rules in Chrome the 12px is back and the layout designer stops stealing my pixels! I can then move the slider all the way over to almost its full extent within the width of my container. Then the same is true of the green dotted border on
.panel-flexible-edit-layout .panels-flexible-column-inside- disabling the border here gets me the other few missing pixels and finally allows the designer to work with the full container's width.So it seems we either need to use padding instead of margins on these elements with negative margins to counter the border/padding we add, or we need another way of showing the layout that doesn't use pixels within the designer - or we modify the designer's code so that it somehow takes into account its own UI in its measurements... Or something else?
Comment #4
janyo commentedsubscribing - i'm getting the exact same problem too. It's in the space of less then 10px for me, so I always have to trick panels by making the canvas size a bit larger - which by some magic doesn't seem to break the layout in any browser.
would be great if it would work correctly though. hope you find time to look at that at some stage... as otherwise the layout builder is awesome!
Comment #5
Letharion commentedComment #6
summit commentedHi, Not only the flexible lay-out, also the other lay outs I think steal pixels..isn't it?
greetings, Martijn
Comment #7
patrickroma commentedThe CSS-Soution in firebug worked as described in #3 also for me by disabling in panels/plugins/layouts/flexible/flexible-admin.css:
It seems to work perfect also in the frontend (meaning it now calculates without the added pixels by the Layout designer)- the only disadvantage seems a UI-Problem for the layout-designer (no white space for the editing fields) or am I missing something fundamental?
Comment #8
japerryClosing this issue as outdated as Drupal 6 ctools is not supported. If this issue is relevant for Drupal 7, feel free to re-open and mark for Drupal 7 (or 8)