I tried to use the panels "two columns stacked" and "Three column 33/34/33" layouts with my RTL site. Everything worked fine with Firefox, and even with IE7 (1024x768) - but suddenly I've got complaints from customers that the right column is displayed below the left column(s), and becomes a white, empty space. I was able to reproduce it on my computer when I resized the window to 800x600 resolution.
Adding RTL support for the "twocol stacked" layout is a simple issue of changing the width of each panel in threecol_33_34_33.css from 50% to 49.9%. This is similar to what was done with the "panel-col-bottom" panel, and it doesn't break firefox. Enlightened, I've tried to use a similar approach for the "Three column 33/34/33" layout by leaving a little air and changing the width of the central panel from 34% to 33% in panels_layouts_threecol_33_34_33.css.
Sigh of relief and a smile on my face - mission completed.
Is it so? Please test the attached patches and verify that they don't break the regular layout.
Conclusions and Insights:
1. Don't eat the whole cake. Leave a little percent to breath!
2. This may work for other panel styles as well - please test :)
| Comment | File | Size | Author |
|---|---|---|---|
| panels_layouts_threecol_33_34_33.css_.patch | 404 bytes | druvision | |
| panels_layout_twocol_stacked.css_.patch | 762 bytes | druvision |
Comments
Comment #1
druvision commentedThanks! The issue was fixed in panels-5.x-2.0 beta3. I've tested the layouts mentioned above to work correctly.
Comment #2
druvision commentedOther layouts should probably be changed accordingly (I haven't tested it yet).
Comment #3
esmerel commentedFixed in beta, No further fixes are going to get committed to the 2.x line