mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 02:51:49 +00:00
add read-only UI contentOffset property
This commit is contained in:
parent
fbca439b2d
commit
08ebfa15db
7 changed files with 86 additions and 79 deletions
|
|
@ -152,7 +152,7 @@ float UINode::getTooltipDelay() const {
|
|||
|
||||
glm::vec2 UINode::calcPos() const {
|
||||
if (parent) {
|
||||
return pos + parent->calcPos() + parent->contentOffset();
|
||||
return pos + parent->calcPos() + parent->getContentOffset();
|
||||
}
|
||||
return pos;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue