From b4b3cdedb7ed81ae947837f638aa9e331049587b Mon Sep 17 00:00:00 2001
From: Alexander Sedov <alex0player@gmail.com>
Date: Mon, 29 Dec 2014 01:32:20 +0300
Subject: [PATCH] A more direct way maybe

---
 game/modules/tome/dialogs/LevelupDialog.lua | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/game/modules/tome/dialogs/LevelupDialog.lua b/game/modules/tome/dialogs/LevelupDialog.lua
index fe7e22963f..7fb7b01640 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
-- 
GitLab