Originally Posted by Resike
This frame can be moved/resized on the fly, and it keeps it's pixel perfection sizes on all of it's elements all the time, even after any (SetSize|SetWidth|SetHeight|SetPoint) calls.
|
WOW!!
So the core of part of the example would be:
Lua Code:
local left, bottom = self:GetLeft(), self:GetBottom()
if left and bottom then
local x = math.round(left)
local y = math.round(-UIParent:GetHeight() + bottom + self:GetHeight())
self:ClearAllPoints()
self:SetPoint("TOPLEFT", UIParent, "TOPLEFT", x, y)
end
as you've explained on previous comment.
What if the parent of such frame is not UIParent, but another frame?
Would L#5 and L#8 still be same? or should I change
UIParent to another parent frame that we create?
+
I've been digging codes out of ElvUI and it also has some variables and functions about pixel perfect.
Would that be a relevant info here? If so, do you have any clues regarding what it actually does?