| 1275 | |
| 1276 | const Frame& ViewNode::getViewFrame() const { |
| 1277 | return _viewFrame; |
| 1278 | } |
| 1279 | |
| 1280 | const Frame& ViewNode::getCalculatedFrame() const { |
| 1281 | return _calculatedFrame; |
| 1282 | } |
| 1283 | |
| 1284 | Frame ViewNode::getDirectionAgnosticFrame() const { |
| 1285 | auto frame = getCalculatedFrame(); |
| 1286 | |
| 1287 | auto parent = getParent(); |
| 1288 | if (parent != nullptr && parent->isRightToLeft()) { |
| 1289 | frame.x = parent->getChildrenSpaceWidth() - frame.getRight(); |