From 6d72f472f5464a0833d6e7b991389711e71ed8f8 Mon Sep 17 00:00:00 2001 From: Lucas Rocha Date: Thu, 14 May 2015 20:59:14 +0100 Subject: [PATCH] Add getters for CSSNode's style width and height --- src/java/src/com/facebook/csslayout/CSSNode.java | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/java/src/com/facebook/csslayout/CSSNode.java b/src/java/src/com/facebook/csslayout/CSSNode.java index 9d62c7fa..4135d734 100644 --- a/src/java/src/com/facebook/csslayout/CSSNode.java +++ b/src/java/src/com/facebook/csslayout/CSSNode.java @@ -341,6 +341,20 @@ public class CSSNode { return style.padding; } + /** + * Get this node's width, as defined in the style. + */ + public float getStyleWidth() { + return style.width; + } + + /** + * Get this node's height, as defined in the style. + */ + public float getStyleHeight() { + return style.height; + } + /** * Set a default padding (left/top/right/bottom) for this node. */