Merge pull request #45 from Alloyed/fix-layout-pop

Fix layout:pop() to actually pop off of the stack
This commit is contained in:
vrld 2016-08-28 18:13:52 +02:00 committed by GitHub
commit 046233fc5f

View file

@ -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)