improved docking

This commit is contained in:
2019-04-05 11:05:21 +02:00
parent 3964c4ea26
commit 9aaaaef705
6 changed files with 77 additions and 16 deletions

View File

@@ -74,7 +74,7 @@ void NodeScroll::draw()
glm::vec4 rect = get_children_rect();
glm::vec4 pad = GetPadding();
float sz = m_size.y - (pad[0] + pad[2]);
float h = sz / rect.w * sz;
float h = glm::max(30.f, sz / rect.w * sz);
float offset_percent = m_offset.y / (rect.w - sz);
float pr = YGNodeLayoutGetPadding(y_node, YGEdgeRight) - 5;
glDisable(GL_BLEND);