Merge pull request #45 from Alloyed/fix-layout-pop
Fix layout:pop() to actually pop off of the stack
This commit is contained in:
commit
046233fc5f
1 changed files with 1 additions and 0 deletions
|
@ -71,6 +71,7 @@ function Layout:pop()
|
|||
self._w, self._h,
|
||||
self._widths, self._heights = unpack(self._stack[#self._stack])
|
||||
self._isFirstCell = false
|
||||
self._stack[#self._stack] = nil
|
||||
|
||||
self._w, self._h = math.max(w, self._w or 0), math.max(h, self._h or 0)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue