I want to move the FocusFrame's castbar (FocusFrameSpellBar) in a way that both frames (FocusFrame and FocusFrameSpellBar) have its right edges on the same line.
I can only change the X-offset of the anchor, because Blizzard's native code is constantly changing the anchor with different offsets and relative frames, to adjust the position of the castbar to the amount of buffs/debuffs of the FocusFrame.
I'm using GetRight() for the task:
local FocusRight = FocusFrame:GetRight()* FocusFrame:GetEffectiveScale()
local CastRight = FocusFrameSpellBar:GetRight()* FocusFrameSpellBar:GetEffectiveScale()
But it doesn't works, the final position is not correct.
I have used the same technique (substraction using GetRight() values) with textures with success, but looks like when it's 2 frames with different scales, it's not that easy. :-/