Commit be74d2a9 authored by Simpy's avatar Simpy 🐹
Browse files

Revert "Revert "unscale dts""

This reverts commit c65f1e3e.
parent a7124eed
...@@ -211,8 +211,8 @@ function DT:BuildPanelFrame(name, db, fromInit) ...@@ -211,8 +211,8 @@ function DT:BuildPanelFrame(name, db, fromInit)
local Panel = DT:FetchFrame(name) local Panel = DT:FetchFrame(name)
Panel:ClearAllPoints() Panel:ClearAllPoints()
Panel:Point('CENTER') Panel:SetPoint('CENTER')
Panel:Size(db.width, db.height) Panel:SetSize(db.width, db.height)
local MoverName = 'DTPanel'..name..'Mover' local MoverName = 'DTPanel'..name..'Mover'
Panel.moverName = MoverName Panel.moverName = MoverName
...@@ -491,9 +491,9 @@ function DT:UpdatePanelInfo(panelName, panel, ...) ...@@ -491,9 +491,9 @@ function DT:UpdatePanelInfo(panelName, panel, ...)
--Restore Panels --Restore Panels
for i, dt in ipairs(panel.dataPanels) do for i, dt in ipairs(panel.dataPanels) do
dt:SetShown(i <= numPoints) dt:SetShown(i <= numPoints)
dt:Size(width, height) dt:SetSize(width, height)
dt:ClearAllPoints() dt:ClearAllPoints()
dt:Point(DT:GetDataPanelPoint(panel, i, numPoints, vertical)) dt:SetPoint(DT:GetDataPanelPoint(panel, i, numPoints, vertical))
dt:UnregisterAllEvents() dt:UnregisterAllEvents()
dt:EnableMouseWheel(false) dt:EnableMouseWheel(false)
dt:SetScript('OnUpdate', nil) dt:SetScript('OnUpdate', nil)
...@@ -562,9 +562,9 @@ function DT:PanelSizeChanged() ...@@ -562,9 +562,9 @@ function DT:PanelSizeChanged()
local width, height, vertical, numPoints = DT:GetTextAttributes(self, db) local width, height, vertical, numPoints = DT:GetTextAttributes(self, db)
for i, dt in ipairs(self.dataPanels) do for i, dt in ipairs(self.dataPanels) do
dt:Size(width, height) dt:SetSize(width, height)
dt:ClearAllPoints() dt:ClearAllPoints()
dt:Point(DT:GetDataPanelPoint(self, i, numPoints, vertical)) dt:SetPoint(DT:GetDataPanelPoint(self, i, numPoints, vertical))
end end
end end
...@@ -579,7 +579,7 @@ function DT:UpdatePanelAttributes(name, db, fromLoad) ...@@ -579,7 +579,7 @@ function DT:UpdatePanelAttributes(name, db, fromLoad)
Panel.yOff = db.tooltipYOffset Panel.yOff = db.tooltipYOffset
Panel.anchor = db.tooltipAnchor Panel.anchor = db.tooltipAnchor
Panel.vertical = db.growth == 'VERTICAL' Panel.vertical = db.growth == 'VERTICAL'
Panel:Size(db.width, db.height) Panel:SetSize(db.width, db.height)
Panel:SetFrameStrata(db.frameStrata) Panel:SetFrameStrata(db.frameStrata)
Panel:SetFrameLevel(db.frameLevel) Panel:SetFrameLevel(db.frameLevel)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment