Hello,

I have a weird issue with {{container}} macro in xwiki 4.5.2.
If I want to display 3 columns, like this for example:

{{container layoutStyle="columns"}}
((( a )))
((( b )))
((( c )))
{{/container}}

It shows content over only 2 columns like this:
a   b
c

... instead of expected:
a  b  c

After having a look at the source :
https://github.com/xwiki/xwiki-platform/blob/xwiki-platform-4.5.2/xwiki-platform-core/xwiki-platform-rendering/xwiki-platform-rendering-macros/xwiki-platform-rendering-macro-container/src/main/java/org/xwiki/rendering/internal/macro/container/ColumnsLayoutManager.java

... I think I understand the problem.
It seems a limitation of container macro, is that it injects columns.css in
the page with number of columns as parameter. So if you add more than one
{{container}} to the same page, they can't have a different number of
columns ...
For instance in my case I used the container macro in a Panel, with 2
columns - so I can never add more than 2 columns in other locations. I
removed the columns from the Panel, and now my 3-columns are correctly
displayed :)

If you agree I could fill a Jira for this (I searched quickly, didn't find
it already described)

Thanks,
Jeremie
_______________________________________________
users mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/users

Reply via email to