Details
-
Bug
-
Resolution: Fixed
-
Major
-
4.5.2, 5.4.2, 7.0, 7.0.1, 8.1, 8.2.1
-
Unit
-
Medium
-
N/A
-
N/A
-
Pull Request accepted
-
Description
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 ...
This can be easily seen, if you had the following into a page:
{{container layoutStyle="columns"}} ((( a ))) ((( b ))) ((( c ))) {{/container}}
You see 3 columns displayed as expected:
a b c
But if you add another container :
{{container layoutStyle="columns"}} ((( a ))) ((( b ))) ((( c ))) {{/container}} {{container layoutStyle="columns"}} ((( d ))) ((( e ))) {{/container}}
Then you see every container is aligned in 2 columns:
a b c d e
As far as I understand, this is due to the fact that in ColumnsLayoutManager.java, columns.css gets injected with number of columns as parameter (in order to compute column width), and obviously this can only be done one time for a page...