fix scroll

This commit is contained in:
2019-10-20 16:13:24 +02:00
parent e30ac277c1
commit 0d575be198
7 changed files with 29 additions and 36 deletions

View File

@@ -12,7 +12,7 @@ Node* NodeScroll::clone_instantiate() const
void NodeScroll::fix_scroll()
{
auto pad = GetPadding();
glm::vec2 padoff = { pad.y + pad.w, pad.x + pad.z };
glm::vec2 padoff = { pad[1] + pad[3], pad[0] + pad[2] };
auto rect = get_children_rect();
if (rect.w > 0 && rect.z > 0)
{