fix messagepopup height_req

This commit is contained in:
Nick 2011-02-21 17:41:10 +01:00
parent 3db7bcbfc7
commit e16ee523a5

View File

@ -260,7 +260,7 @@ class MessagePopup(Popup):
self.message = message
self.width= int(parent_mode.cols/2)
lns = self._split_message()
Popup.__init__(self,parent_mode,title,height_req=len(lns))
Popup.__init__(self,parent_mode,title,height_req=(len(lns)+2))
self._lines = lns
def _split_message(self):