Lolcoincoin / tekkub-wow

Automatically exported from code.google.com/p/tekkub-wow
0 stars 0 forks source link

Anchor issue #688

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Testing Cork 3.0.3.9-Beta. I noticed that when I move the anchor where I
want it and then reload my UI, it shifts the anchor up and to the right a
bit. This only seems to happen the first time I reload my UI after moving
the anchor. I wonder if maybe it's doing something like saving off the
location of one of the corners of the anchor after dragging, and then using
that as the center location the next time it loads (or vice versa).

Original issue reported on code.google.com by benshadw...@gmail.com on 24 Nov 2008 at 6:16

GoogleCodeExporter commented 9 years ago
I don't really know what I'm doing, but I played around with Spew and found that
changing:

    Cork.db.point, Cork.db.x, Cork.db.y = "BOTTOMLEFT", self:GetCenter()

to

    Cork.db.point, _, _, Cork.db.x, Cork.db.y = self:GetPoint()

in the OnDragStop handler seems to fix the issue, but I don't know if it's 
really a
correct solution or not.

Original comment by benshadw...@gmail.com on 24 Nov 2008 at 6:40

GoogleCodeExporter commented 9 years ago

Original comment by Tekkub on 6 Dec 2008 at 8:37