Skip to content

Commit

Permalink
Adds getter for size constraints on LayoutState
Browse files Browse the repository at this point in the history
Summary: Adds getter for size constraints on LayoutState

Reviewed By: pentiumao

Differential Revision: D51525462

fbshipit-source-id: 7cd389931719a85ed8ae43fa5bbe3891f2404345
  • Loading branch information
adityasharat authored and facebook-github-bot committed Nov 22, 2023
1 parent 3ab49bb commit 12060da
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions litho-core/src/main/java/com/facebook/litho/LayoutState.java
Original file line number Diff line number Diff line change
Expand Up @@ -499,6 +499,10 @@ int getHeight() {
return mHeight;
}

public SizeConstraints getSizeConstraints() {
return mSizeConstraints;
}

int getWidthSpec() {
return SizeConstraints.Helper.getWidthSpec(mSizeConstraints.getEncodedValue());
}
Expand Down

0 comments on commit 12060da

Please sign in to comment.