| 3701 | newDirection = facebook::yoga::FlexDirection::Column; |
| 3702 | } |
| 3703 | |
| 3704 | if (getYogaStyle(getYogaNodeForInsertingChildren()).flexDirection() != newDirection) { |
| 3705 | getYogaStyle(getYogaNodeForInsertingChildren()).setFlexDirection(newDirection); |
| 3706 | markLayoutDirty(); |
| 3707 | } |
| 3708 | |
| 3709 | auto& scrollState = getOrCreateScrollState(); |
| 3710 | if (scrollState.getIsHorizontal() != horizontalScroll) { |
| 3711 | scrollState.setIsHorizontal(horizontalScroll); |
| 3712 | scrollState.setNeedsSyncWithView(true); |
| 3713 | } |
| 3714 | } |
| 3715 | |
| 3716 | void ViewNode::setScrollCircularRatio(int circularRatio) { |
| 3717 | auto& scrollState = getOrCreateScrollState(); |
| 3718 | if (scrollState.getCircularRatio() != circularRatio) { |
| 3719 | scrollState.setCircularRatio(circularRatio); |
| 3720 | scrollState.setNeedsSyncWithView(true); |
| 3721 | } |
| 3722 | } |
| 3723 | |
| 3724 | void ViewNode::setScrollStaticContentWidth(float staticContentWidth) { |
| 3725 | auto& scrollState = getOrCreateScrollState(); |
| 3726 | if (scrollState.getStaticContentWidth() != staticContentWidth) { |
nothing calls this directly
no test coverage detected