errael commented on PR #5280: URL: https://github.com/apache/netbeans/pull/5280#issuecomment-1397371539
@mbien @matthiasblaesing In https://github.com/apache/netbeans/pull/5280#issuecomment-1386241102 I said that the code in `NbPresenter.initBounds()` _code to change location if screen boundary overlaps dialog_, could be responsible for the behavior. But it looks like there are other candidates for the problem. I'm taking a look at `Window.setLocationRelativeTo()`, one comment in the javadoc is ``` Note: If the lower edge of the window is out of the screen, then the window is placed to the side of the Component that is closest to the center of the screen. So if the component is on the right part of the screen, the window is placed to its left, and vice versa. ``` which seems to echo the noted behavior. In any event, knowing the arg in `setLocationRelativeTo( findFocusedWindow() )` in NbPresenter.initBounds() is important for getting to the bottom of what's going on. Also seeing `getLocation()` for the various components and the precise code path and intermediate values would be useful. -- 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
