setting x and y on creationComplete event for a popup causes bug

2004-05-12 Thread bobpardoe1959
I am trying to centre my popoup screen (which is an mxml TitleWindow component) by using the creationComplete event to do the following this.x = (parentDocument.width / 2) - (this.width / 2); this.y = (parentDocument.height / 2) - (this.height / 2); What happens is that the shadow is in one

RE: [flexcoders] setting x and y on creationComplete event for a popup causes bug

2004-05-12 Thread Paul Cameron
I had the exact same problem. I solved it by using move() instead of setting the x and y. this.move((_root.width - this.width) / 2, (_root.height - this.height) / 2, false); I am calling this code on creationComplete in the popup class. Paul -Original Message- From: bobpardoe1959

RE: [flexcoders] setting x and y on creationComplete event for a popup causes bug

2004-05-12 Thread Yukari Machiyama
Hi Bob, This problem sounds familiar to me but wasn't able to reproduce with my quick test. I created an MXML component like this: ?xml version=1.0 encoding=utf-8? mx:TitleWindow xmlns:mx=http://www.macromedia.com/2003/mxml;