Skip to content

Commit

Permalink
fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
thisdp committed Feb 27, 2019
1 parent 4f6b8e4 commit 2b5feff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion Core/window.lua
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ function dgsWindowSetCloseButtonEnabled(window,bool)
dgsSetData(window,"closeButton",buttonOff)
dgsSetSide(buttonOff,"right",false)
dgsSetData(buttonOff,"ignoreParentTitle",true)
dgsSetPosition(buttonOff,30,0,false)
return true
end
else
Expand Down
4 changes: 2 additions & 2 deletions client.lua
Original file line number Diff line number Diff line change
Expand Up @@ -417,13 +417,13 @@ function renderGUI(v,mx,my,enabled,rndtgt,position,OffsetX,OffsetY,galpha,visibl
if dxType_p == "dgs-dxwindow" then
local pEleData = dgsElementData[parent]
if not pEleData.ignoreTitle and not eleData.ignoreParentTitle then
PosY = PosY+(eleData.titleHeight or 0)
PosY = PosY+(pEleData.titleHeight or 0)
end
elseif dxType_p == "dgs-dxtab" then
local pEleData = dgsElementData[FatherTable[parent]]
local pSize = pEleData.absSize
local tabHeight = pEleData.tabHeight[2] and pEleData.tabHeight[1]*pSize[2] or pEleData.tabHeight[1]
PosY = tabHeight
PosY = PosY+tabHeight
w,h = pSize[1],pSize[2]-tabHeight
end
if dxType ~= "dgs-dxtab" then
Expand Down

0 comments on commit 2b5feff

Please sign in to comment.