JS bindings for setAlwaysFormsContainingBlock (#1541)

Summary:
Pull Request resolved: https://github.com/facebook/yoga/pull/1541

tsia

Reviewed By: NickGerleman

Differential Revision: D52608426

fbshipit-source-id: 19fa01d87cbae3457adb9cdb9e0cb602b7afa619
This commit is contained in:
Joe Vilches
2024-01-08 20:28:49 -08:00
committed by Facebook GitHub Bot
parent 47e9f33eb4
commit e4ab593686
4 changed files with 11 additions and 0 deletions

View File

@@ -468,3 +468,7 @@ double Node::getComputedBorder(int edge) const {
double Node::getComputedPadding(int edge) const {
return YGNodeLayoutGetPadding(m_node, static_cast<YGEdge>(edge));
}
void Node::setAlwaysFormsContainingBlock(bool alwaysFormsContainingBlock) {
return YGNodeSetAlwaysFormContainingBlock(m_node, alwaysFormsContainingBlock);
}