You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lo...@apache.org on 2018/02/09 16:32:29 UTC

[myfaces-tobago] branch master updated: TOBAGO-1651: FlexLayout should use full browser height

This is an automated email from the ASF dual-hosted git repository.

lofwyr 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 0895548  TOBAGO-1651: FlexLayout should use full browser height
0895548 is described below

commit 08955481e90010ecf71ef05a7a61d2bc654f3c62
Author: Udo Schnurpfeil <lo...@apache.org>
AuthorDate: Fri Feb 9 17:32:39 2018 +0100

    TOBAGO-1651: FlexLayout should use full browser height
    
    * fix missing CSS class in BODY
    * add documentation
---
 .../tobago/internal/renderkit/renderer/PageRenderer.java    |  1 +
 .../internal/taglib/component/PageTagDeclaration.java       | 13 ++++++++++---
 2 files changed, 11 insertions(+), 3 deletions(-)

diff --git a/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/renderkit/renderer/PageRenderer.java b/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/renderkit/renderer/PageRenderer.java
index 6333403..78cd3d8 100644
--- a/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/renderkit/renderer/PageRenderer.java
+++ b/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/renderkit/renderer/PageRenderer.java
@@ -249,6 +249,7 @@ public class PageRenderer extends RendererBase {
 
     if (!portlet) {
       writer.startElement(HtmlElements.BODY);
+      writer.writeClassAttribute(spread);
     }
 
     writer.startElement(HtmlElements.DIV);
diff --git a/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/taglib/component/PageTagDeclaration.java b/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/taglib/component/PageTagDeclaration.java
index 8b4883a..156ec1c 100644
--- a/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/taglib/component/PageTagDeclaration.java
+++ b/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/taglib/component/PageTagDeclaration.java
@@ -21,6 +21,7 @@ package org.apache.myfaces.tobago.internal.taglib.component;
 
 import org.apache.myfaces.tobago.apt.annotation.Behavior;
 import org.apache.myfaces.tobago.apt.annotation.Facet;
+import org.apache.myfaces.tobago.apt.annotation.Markup;
 import org.apache.myfaces.tobago.apt.annotation.Tag;
 import org.apache.myfaces.tobago.apt.annotation.TagAttribute;
 import org.apache.myfaces.tobago.apt.annotation.UIComponentTag;
@@ -53,9 +54,9 @@ import javax.faces.component.UIForm;
     uiComponentFacesClass = "javax.faces.component.UIForm",
     componentFamily = UIForm.COMPONENT_FAMILY,
     rendererType = RendererTypes.PAGE,
-    facets =
-        { @Facet(name=Facets.LAYOUT, description = "Deprecated! Contains an layout manager. "
-              + "The layout manager tag should surround the content instead.")},
+    facets = {
+        @Facet(name = Facets.LAYOUT, description = "Deprecated! Contains an layout manager. "
+            + "The layout manager tag should surround the content instead.")},
     behaviors = {
         @Behavior(
             name = ClientBehaviors.CLICK,
@@ -66,6 +67,12 @@ import javax.faces.component.UIForm;
             name = ClientBehaviors.LOAD),
         @Behavior(
             name = ClientBehaviors.RESIZE)
+    },
+    markups = {
+        @Markup(
+            name = "spread",
+            description = "Use the full browser height for the HTML content."
+        )
     })
 
 public interface PageTagDeclaration

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