WoW BlueTracker Home | RSS | News | Contact
Recent | Search | Archive | CS Posts
Poster: Cide at 9/30/2005 10:42:23 AM PDT
Subject: Bug in StartSizing(anchorPoint)?
   After setting a frame's position using SetPoint, and then calling StartSizing() for that frame, it will return to the position before the call to SetPoint. It almost looks as if the frame maintains a local variable of where it is for the usage of StartSizing, but SetPoint() isn't updating this properly. The only way to get it to start resizing from a specific point is to place it there manually (by calling StartSizing and then moving it).

Example:

A frame is placed at TOPLEFT. We call frame:SetPoint("TOPLEFT", 15, 15). After calling frame:StartSizing("LEFT"), the frame will slide back to x = 0, as if the call to SetPoint did nothing.

Is there a possible work around for this? I tried calling SetUserPlaced after changing the position, but it didn't help. Any ideas? Hopefully I was coherent enough, I'm a bit tired :).
CTMod Developer
http://www.ctmod.net/
  http://forums.worldofwarcraft.com/thread.aspx?fn=wow-interface-customization&t=231402&p=#post231402
 
Poster: slouken at 9/30/2005 1:27:18 PM PDT
Subject: Re: Bug in StartSizing(anchorPoint)?
   Can you put together a minimal example addon showing this behavior?
  http://forums.worldofwarcraft.com/thread.aspx?fn=wow-interface-customization&t=231402&p=#post231562
Poster: slouken at 9/30/2005 1:30:52 PM PDT
Subject: Re: Bug in StartSizing(anchorPoint)?
  

Q u o t e:
Actually, I "fixed" it by calling SetWidth() and SetHeight() with the new (manually) calculated width & height. This fixed it, but if you intend for it to work without having to do this, I can put together an addon that shows it.


Well, it may be that's a side effect of the delayed resizing code and can't be fixed, but I'm happy to at least look at it quickly.
  http://forums.worldofwarcraft.com/thread.aspx?fn=wow-interface-customization&t=231402&p=#post231565
Poster: slouken at 9/30/2005 1:44:38 PM PDT
Subject: Re: Bug in StartSizing(anchorPoint)?
   Okay, can you give a set of commands with the default UI I can run to see this behavior?
  http://forums.worldofwarcraft.com/thread.aspx?fn=wow-interface-customization&t=231402&p=#post231580
Poster: slouken at 9/30/2005 4:02:32 PM PDT
Subject: Re: Bug in StartSizing(anchorPoint)?
   Thanks, that was a great example.

What was happening is that the frame was using the width and height defined in the XML when it was flattened for resizing, instead of the width and height it had due to anchor overrides.

This is fixed for the next test server update.
  http://forums.worldofwarcraft.com/thread.aspx?fn=wow-interface-customization&t=231402&p=#post231721

View all recent official Blue Posts

WoW Blue Tracker: Archiving World of Warcraft Blue Posts
since March 2005
Home | RSS | News | Contact
Recent | Search | Archive | CS Posts
 

Why Ads?