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

Revert "unscale dts"

This reverts commit 73f5ed20.
parent 88ba7c5a
......@@ -211,8 +211,8 @@ function DT:BuildPanelFrame(name, db, fromInit)
local Panel = DT:FetchFrame(name)
Panel:ClearAllPoints()
Panel:SetPoint('CENTER')
Panel:SetSize(db.width, db.height)
Panel:Point('CENTER')
Panel:Size(db.width, db.height)
local MoverName = 'DTPanel'..name..'Mover'
Panel.moverName = MoverName
......@@ -491,9 +491,9 @@ function DT:UpdatePanelInfo(panelName, panel, ...)
--Restore Panels
for i, dt in ipairs(panel.dataPanels) do
dt:SetShown(i <= numPoints)
dt:SetSize(width, height)
dt:Size(width, height)
dt:ClearAllPoints()
dt:SetPoint(DT:GetDataPanelPoint(panel, i, numPoints, vertical))
dt:Point(DT:GetDataPanelPoint(panel, i, numPoints, vertical))
dt:UnregisterAllEvents()
dt:EnableMouseWheel(false)
dt:SetScript('OnUpdate', nil)
......@@ -562,9 +562,9 @@ function DT:PanelSizeChanged()
local width, height, vertical, numPoints = DT:GetTextAttributes(self, db)
for i, dt in ipairs(self.dataPanels) do
dt:SetSize(width, height)
dt:Size(width, height)
dt:ClearAllPoints()
dt:SetPoint(DT:GetDataPanelPoint(self, i, numPoints, vertical))
dt:Point(DT:GetDataPanelPoint(self, i, numPoints, vertical))
end
end
......@@ -579,7 +579,7 @@ function DT:UpdatePanelAttributes(name, db, fromLoad)
Panel.yOff = db.tooltipYOffset
Panel.anchor = db.tooltipAnchor
Panel.vertical = db.growth == 'VERTICAL'
Panel:SetSize(db.width, db.height)
Panel:Size(db.width, db.height)
Panel:SetFrameStrata(db.frameStrata)
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