myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hno...@apache.org
Subject [myfaces-tobago] branch master updated: TOBAGO-1885 Render markup CSS classes for FlexLayout and GridLayout
Date Wed, 04 Apr 2018 08:12:35 GMT
This is an automated email from the ASF dual-hosted git repository.

hnoeth pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/myfaces-tobago.git


The following commit(s) were added to refs/heads/master by this push:
     new 3638680  TOBAGO-1885 Render markup CSS classes for FlexLayout and GridLayout
3638680 is described below

commit 36386802e4dfee14ff9b215efb618dfbae98f7b9
Author: Henning Noeth <hnoeth@apache.org>
AuthorDate: Wed Apr 4 10:12:26 2018 +0200

    TOBAGO-1885 Render markup CSS classes for FlexLayout and GridLayout
    
    markup CSS classes are now rendered for FlexLayout and GridLayout
---
 .../myfaces/tobago/internal/renderkit/renderer/FlexLayoutRenderer.java   | 1 +
 .../myfaces/tobago/internal/renderkit/renderer/GridLayoutRenderer.java   | 1 +
 2 files changed, 2 insertions(+)

diff --git a/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/renderkit/renderer/FlexLayoutRenderer.java
b/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/renderkit/renderer/FlexLayoutRenderer.java
index d556578..925298c 100644
--- a/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/renderkit/renderer/FlexLayoutRenderer.java
+++ b/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/renderkit/renderer/FlexLayoutRenderer.java
@@ -46,6 +46,7 @@ public class FlexLayoutRenderer extends RendererBase {
     writer.writeAttribute(DataAttributes.MARKUP, JsonUtils.encode(markup), false);
     writer.writeClassAttribute(
         TobagoClass.FLEX_LAYOUT,
+        TobagoClass.FLEX_LAYOUT.createMarkup(markup),
         BootstrapClass.D_FLEX,
         flexLayout.isHorizontal() ? BootstrapClass.FLEX_ROW : BootstrapClass.FLEX_COLUMN,
         BootstrapClass.valueOf(flexLayout.getAlignItems()),
diff --git a/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/renderkit/renderer/GridLayoutRenderer.java
b/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/renderkit/renderer/GridLayoutRenderer.java
index a537479..445265c 100644
--- a/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/renderkit/renderer/GridLayoutRenderer.java
+++ b/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/renderkit/renderer/GridLayoutRenderer.java
@@ -51,6 +51,7 @@ public class GridLayoutRenderer extends RendererBase {
     writer.writeAttribute(DataAttributes.MARKUP, JsonUtils.encode(gridLayout.getMarkup()),
false);
     writer.writeClassAttribute(
         TobagoClass.GRID_LAYOUT,
+        TobagoClass.GRID_LAYOUT.createMarkup(markup),
         markup != null && markup.contains(Markup.SPREAD) ? TobagoClass.SPREAD : null);
 
     final MeasureList columns = MeasureList.parse(gridLayout.getColumns());

-- 
To stop receiving notification emails like this one, please contact
hnoeth@apache.org.

Mime
View raw message