diff --git a/game/modules/tome/dialogs/LevelupDialog.lua b/game/modules/tome/dialogs/LevelupDialog.lua index fe7e22963f560fed81e42c278aeef976b34d83a8..7fb7b01640b5c477eee02b17446a36679251c401 100644 --- a/game/modules/tome/dialogs/LevelupDialog.lua +++ b/game/modules/tome/dialogs/LevelupDialog.lua @@ -693,7 +693,7 @@ function _M:createDisplay() font = core.display.newFont("/data/font/DroidSans.ttf", 14), tiles=game.uiset.hotkeys_display_icons, tree=self.gtree, - width=320, height=self.ih-50 - math.max((not self.b_prodigies and 0 or self.b_prodigies.h + 5), (not self.b_inscriptions and 0 or self.b_inscriptions.h + 5)), + width=320, height=(self.no_tooltip and self.ih - 50) or self.ih-50 - math.max((not self.b_prodigies and 0 or self.b_prodigies.h + 5), (not self.b_inscriptions and 0 or self.b_inscriptions.h + 5)), tooltip=function(item) local x = self.display_x + self.uis[8].x - game.tooltip.max if self.display_x + self.w + game.tooltip.max <= game.w then x = self.display_x + self.w end @@ -807,8 +807,6 @@ function _M:createDisplay() self.c_desc = TextzoneList.new{ focus_check = true, scrollbar = true, width=200, height = self.ih - (self.b_prodigies and self.b_prodigies.h + 5 or 0), dest_area = { h = self.ih - (self.b_prodigies and self.b_prodigies.h + 5 or 0) } } ret[#ret+1] = {left=self.c_gtree, top=align_empty1, ui=vsep3} ret[#ret+1] = {left=vsep3, right=0, top=0, ui=self.c_desc, calc_width=3} - self.c_gtree.h = self.ih - 50 - self.c_gtree:generate() end return ret