Fix layout:pop() to actually pop off of the stack

This commit is contained in:
Kyle McLamb 2016-08-27 10:19:07 -04:00
parent e64a822de8
commit ec361de482

View file

@ -59,6 +59,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)