In Photoshop CC2015, the dialog windows always center themselves regardless of the coordinates given to the window. I've tried both window.frameLocation and window.location. This works fine prior to CC2015. I have this command right before window.show(). I also tried adding window.frameLocation to onShow but it still puts it in the center. I then tried adding a button to the UI with the window.framelocation and it will move the window to where it is suppose to be.
Is there any way to automate a piece of code to run right after the window is drawn? If so, the window could be moved to the proper location after it is drawn.
I think that window.show() is calculating the center and overwriting the location. I tested by alerting the location just before it is drawn and then adding a button to alert after the window pops up. The location just before .show() is the correct location that I give it. After the window appears, the window.frameLocation values that I get from the test button change to the center. The only code ran between the 2 alerts is window.show() so it must be recalculating the window coordinates.
This works prior to CC2015........
I also tried this variation but the onShow code runs just before the window is drawn.
That been discussed in the scripting forum.
My apologies, I should have just asked the specific question that I was looking for an answer.
Yes, I posted this bug within the pile of other stuff that isn't working and I also submitted a bug report. However, I had a different specific question that was buried in this posting. I basically want to know if there is a way to automatically run some code after a window is drawn. I should have just submitted that specific question instead of giving the reason that I am wanting to do this. Therefore, I resubmitted that exact question to the forum is not buried inside this posting.