errael commented on PR #5280:
URL: https://github.com/apache/netbeans/pull/5280#issuecomment-1386241102

   > My observation in the previous comment is reproducible
   
   @matthiasblaesing Wish I could reproduce it. Here's what the code does
   
   Note that the placement code in NbPresenter _does not use the owner_,
   _it uses the focused window_ (if found).
   
   DialogDisplayerImpl.AWTQuery.showDialog
   - presenter = new NbPresenter(desc, owner, modalTrue)
     - initBounds()
       - // assuming focused window
       - `setLocationRelativeTo( findFocusedWindow() )`
       - **XXX** code to change location if screen boundary overlaps dialog
   - customizeDlg(presenter) // <<< does lookup, not found in my tests
   - // matthias: `presenter.setLocationRelativeTo(presenter.getOwner())`
   
   **XXX above could do what's being seen**
   
   Here's what I tried, but can't reproduce
   
   
![close](https://user-images.githubusercontent.com/20450427/213035084-53823611-3ca3-4b98-8923-db910fd11f2e.png)
   
   Under the debugger
   - start up clean udir/cache dummy nbm project (no plugins)
   - open existing ant java library project used for testing, several tiny files
   - open a few java files
   - Add a character to a file
   - Context menu on editor tab, select close
   
   Observe `save? dialog` centered on main window


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to