| 257 | return _positionPercentY; |
| 258 | } |
| 259 | void LayoutComponent::setPositionPercentY(float percentMargin) |
| 260 | { |
| 261 | _positionPercentY = percentMargin; |
| 262 | |
| 263 | if (_usingPositionPercentY || _verticalEdge == VerticalEdge::Center) |
| 264 | { |
| 265 | Node* parent = this->getOwnerParent(); |
| 266 | if (parent != nullptr) |
| 267 | { |
| 268 | _owner->setPositionY(parent->getContentSize().height * _positionPercentY); |
| 269 | this->refreshVerticalMargin(); |
| 270 | } |
| 271 | } |
| 272 | } |
| 273 | |
| 274 | LayoutComponent::HorizontalEdge LayoutComponent::getHorizontalEdge() const |
| 275 | { |
no test coverage detected