fix: asciimatics introduced the '_required_height' property in the Label class. Just updating here to mirror the change

This commit is contained in:
Sami Mokaddem 2018-02-16 14:35:09 +01:00
parent 4dbf0b743e
commit cbb19f95e4

View file

@ -175,6 +175,7 @@ class CLabel(Label):
# tab calculations, so leave internal `_label` value as None. # tab calculations, so leave internal `_label` value as None.
self._text = label self._text = label
self.listTitle = listTitle self.listTitle = listTitle
self._required_height = 1
def set_layout(self, x, y, offset, w, h): def set_layout(self, x, y, offset, w, h):
# Do the usual layout work. then recalculate exact x/w values for the # Do the usual layout work. then recalculate exact x/w values for the