What steps will reproduce the problem?
1. Add a window via ActionScript like this,
win.setStyle("horizontalCenter","0");
mdiCanvas.windowManager.add(win);
mdiCanvas.windowManager.center(win);
2. Now try to drag the window to another location on the Flex app.
3. Notice how it snaps back to the center.
What is the expected output? What do you see instead?
When dragged, the window would stay put. It snaps back to the center.
What version of the product are you using? On what operating system?
1.1 on Windows XP Pro, with Flex 3.02.
Please provide any additional information below.
I posted this to Ben's blog and here's what Ben said in reply:
Hi Alex,
It snaps back because of the horizontalCenter style. We clear any top,
right, bottom left styles when dragging starts but I think horizontalCenter
and verticalCenter were overlooked. You should add a feature request to
http://code.google.com/p/flexlib/issues/list.
I didn't even know we had a center() method and the code for it seems to be
incorrect. I would just create your own method to center a window manually
and use that, and get rid of the existing call to center() and remove the
style.
HTH,
Ben
Original issue reported on code.google.com by cougar...@gmail.com on 3 Dec 2008 at 6:25
Original issue reported on code.google.com by
cougar...@gmail.com
on 3 Dec 2008 at 6:25