Improve CMS scripting
[lgpl/argeo-commons.git] / org.argeo.cms.ui / src / org / argeo / cms / util / CmsUtils.java
index 415008966dfe927654daf2e0885f5b93974502fc..743691588f08428a4c27129878081a681c541f17 100644 (file)
@@ -84,6 +84,10 @@ public class CmsUtils implements CmsConstants {
                return noSpaceGridLayout(new GridLayout());
        }
 
+       public static GridLayout noSpaceGridLayout(int columns) {
+               return noSpaceGridLayout(new GridLayout(columns, false));
+       }
+
        public static GridLayout noSpaceGridLayout(GridLayout layout) {
                layout.horizontalSpacing = 0;
                layout.verticalSpacing = 0;