Skip to content

Commit

Permalink
Merge pull request #92 from lucasr/get-style-direction
Browse files Browse the repository at this point in the history
Add style direction getter to CSSNode
  • Loading branch information
vjeux committed May 28, 2015
2 parents e932e44 + 3fc99b0 commit ae56a1d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/java/src/com/facebook/csslayout/CSSNode.java
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,13 @@ public float getStyleHeight() {
return style.height;
}

/**
* Get this node's direction, as defined in the style.
*/
public CSSDirection getStyleDirection() {
return style.direction;
}

/**
* Set a default padding (left/top/right/bottom) for this node.
*/
Expand Down

0 comments on commit ae56a1d

Please sign in to comment.