Fix #71

The problem was a strange condition where the layout manager
sometimes first allocates a large space (say, 20 x 20 characters in size)
for the line container, which triggers a (delayed) resize cycle,
and then immediately afterwards allocates a smaller, often invalid
(20 x 0) space, aborting a legitimate resize.