Fix the issue: When the windowY value exceeds the monitor height, set it to zero by default to ensure visibility. #283
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I have two monitors: one is an LG monitor with a resolution of 3840 x 2160, and the other is a Xiaomi monitor with a resolution of 1920 x 1080.
I encountered an issue while using an Active Directory domain account.
While using an Administrator account on a non-Active Directory (AD) domain on the same PC, it works correctly.
When I first launched the app on my LG monitor, the GCViewerGui was obscured. The only action available to me was to click the close button in the taskbar. After numerous attempts and extensive debugging, I encountered an unusual windowY value of 4957 and a windowX value of -11.
I cannot repeat this issue: which moment the
`java
System.getProperty("user.home") + "/gcviewer.properties"
`
was generated, and why i got the windowY value of 4957 and the windowX value of -11.
this solution works for me:
before
`java
`
com.tagtraum.perf.gcviewer.view.GCViewerGui[
frame0,
4597,
-11,
2326x1258,
layout=java.awt.BorderLayout,
title=tagtraum industries incorporated - GCViewer,
resizable,
normal,
defaultCloseOperation=DO_NOTHING_ON_CLOSE,
rootPane=javax.swing.JRootPane[
,11,45,2304x1202,
layout=javax.swing.JRootPane$RootLayout,
alignmentX=0.0,
alignmentY=0.0,
border=,
flags=16777673,
maximumSize=,
minimumSize=,
preferredSize=
],
rootPaneCheckingEnabled=true
]
gcviewer.properties
`java
view.showdatestamp=true
view.gctimesline=true
view.incgclines=true
view.totalmemory=true
lastfile=F:\dump\java\task-service-messervicetest-gc-2025-02-20_17-03-26.log
view.usedyoungmemory=true
view.gctimesrectangles=true
view.usedtenuredmemory=true
view.youngmemory=true
window.width=3862
view.concurrentcollectionbeginend=true
view.tenuredmemory=true
view.initialmarklevel=true
window.height=2060
view.fullgclines=true
window.y=4957
window.x=-11
view.antialias=true
view.usedmemory=true
`
after
`java
private GCPreferences copyPreferencesFromGui(GCViewerGui gui) {
...
`
com.tagtraum.perf.gcviewer.view.GCViewerGui[
frame0,
0,
0,
0x0,
invalid,
hidden,
layout=java.awt.BorderLayout,
title=tagtraum industries incorporated - GCViewer,
resizable,
normal,
defaultCloseOperation=DO_NOTHING_ON_CLOSE,
rootPane=javax.swing.JRootPane[
,
0,
0,
0x0,
invalid,
layout=javax.swing.JRootPane$RootLayout,
alignmentX=0.0,
alignmentY=0.0,
border=,
flags=16777673,
maximumSize=,
minimumSize=,
preferredSize=
],
rootPaneCheckingEnabled=true
]