Bug 867193 - Take margin offset into account when positioning form pop-ups. r=margaret a=akeybl