- Fixed small involuntary resizes after resizing a window.

- Fixed row creation while resizing where sometimes it was broking the last row in the window.
- Fixed frame strata after stretching the window where was setting its strata to Medium.
- Fixed Vanguard strata where it wasn't following the strata from its host window.
This commit is contained in:
tercio
2014-06-14 15:37:15 -03:00
parent 98dafdb8fe
commit 9d7b43fba6
7 changed files with 28 additions and 16 deletions
+5 -6
View File
@@ -140,8 +140,10 @@
local mostrando = self.mostrando
local baseframe_width = math.floor (self.baseframe:GetWidth())
local baseframe_height = math.floor (self.baseframe:GetHeight())
--local baseframe_width = math.floor (self.baseframe:GetWidth())
--local baseframe_height = math.floor (self.baseframe:GetHeight())
local baseframe_width = self.baseframe:GetWidth()
local baseframe_height = self.baseframe:GetHeight()
if (not baseframe_width) then
return _detalhes:ScheduleTimer ("SaveMainWindowPosition", 1, self)
@@ -380,10 +382,7 @@
if (self.rows_fit_in_window > #self.barras) then--> verifica se precisa criar mais barras
for i = #self.barras+1, self.rows_fit_in_window, 1 do
local nova_barra = gump:CriaNovaBarra (self, i, 30) --> cria nova barra
nova_barra.texto_esquerdo:SetText (Loc ["STRING_NEWROW"]) --seta o texto da esqueda
nova_barra.statusbar:SetValue (100)
self.barras [i] = nova_barra
gump:CriaNovaBarra (self, i, 30) --> cria nova barra
end
self.rows_created = #self.barras
end