improved docking
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user