I had posted this in #1549660: Allow Styling of Regions in the Panels IPE, but I think it got lost in the excitement. Basically there seems to be problems with some style plugins (namely the ones that organize the panes into a list like the "List" plugin provided by Panels) where the $panes['empty_placeholder'] markup is accidentally added to the themed list of content.
This problem can be seen in this screenshot (http://drupal.org/files/panels-list-region-style-ipe.png) and fixed with the attached patch (http://drupal.org/files/1549660-list-region-style-dont-render-empty-plac...) as per this screenshot (http://drupal.org/files/panels-list-style-ipe-patch-applied.png).
I am going to presume there is a more global way to exclude that pane from the region theme functions, but this patch will help to explain the problem.
Comments
Comment #1
merlinofchaos CreditAttribution: merlinofchaos commentedOk, I'm backpedaling on this not being fixable. Let's try this.
Comment #2
populist CreditAttribution: populist commentedIt might be worth considering a more general solution (see http://drupal.org/files/1728776-empty-placeholder-at-end-of-output.patch) which works fine for the rendering of the regions on the display.
There is a problem (which happens with or without the patch) when you try to add new panes into region style (i.e. accordian or list) that looks like this: PDOException: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '16' for key 'PRIMARY':. I presume that is due to the numbering, but if there is a fix possible for that then the attached patch should work.
Comment #3
merlinofchaos CreditAttribution: merlinofchaos commentedArgh. A second time a patch I tried to attach did not actually attach. Grr.
Comment #4
merlinofchaos CreditAttribution: merlinofchaos commentedComment #5
merlinofchaos CreditAttribution: merlinofchaos commentedThere, finally!
Comment #6
merlinofchaos CreditAttribution: merlinofchaos commentedI went ahead and committed #4; it's fundamentally similar to #2, except I let the HTML actually be put in the theme function for slightly more flexibility for things that want to change the look of the IPE more.