mirror of
https://github.com/Insality/druid.git
synced 2025-09-27 18:12:19 +02:00
Update changelogs
This commit is contained in:
@@ -327,7 +327,7 @@ end
|
||||
|
||||
|
||||
|
||||
--- Bind the grid component (Static or Dynamic) to recalc
|
||||
--- Bind the grid component (Static or Dynamic) to recalculate
|
||||
-- scroll size on grid changes
|
||||
-- @function scroll:bind_grid
|
||||
-- @tparam druid.static_grid|druid.dynamic_grid Druid grid component
|
||||
|
@@ -166,9 +166,6 @@ function StaticGrid:remove(index, is_shift_nodes)
|
||||
end
|
||||
end
|
||||
|
||||
-- Recalculate borders
|
||||
self.border = vmath.vector4(0)
|
||||
|
||||
self:_update()
|
||||
|
||||
self.on_add_item:trigger(self:get_context(), index)
|
||||
@@ -179,11 +176,10 @@ end
|
||||
--- Return grid content size
|
||||
-- @function static_grid:get_size
|
||||
-- @treturn vector3 The grid content size
|
||||
function StaticGrid:get_size(border)
|
||||
border = border or self.border
|
||||
function StaticGrid:get_size()
|
||||
return vmath.vector3(
|
||||
border.z - border.x,
|
||||
border.y - border.w,
|
||||
self.border.z - self.border.x,
|
||||
self.border.y - self.border.w,
|
||||
0)
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user