Skip to content

Instantly share code, notes, and snippets.

@nefftd
Created October 6, 2014 15:59
Show Gist options
  • Save nefftd/08bfcc35796ec47713cf to your computer and use it in GitHub Desktop.
Save nefftd/08bfcc35796ec47713cf to your computer and use it in GitHub Desktop.
local top = math.max(f1:GetTop(),f2:GetTop())
local bottom = math.min(f1:GetBottom(),f2:GetBottom())
local left = math.min(f1:GetLeft(),f2:GetLeft())
local right = math.max(f1:GetRight(),f2:GetRight())
local w,h = UIParent:GetWidth(),UIParent:GetHeight()
f3:ClearAllPoints()
f3:SetPoint('TOPLEFT',UIParent,'TOPLEFT',h-top,left)
f3:SetPoint('BOTTOMRIGHT',UIParent,'BOTTOMRIGHT',bottom,w-right)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment