Modify

Opened 21 months ago

Last modified 21 months ago

#23002 new defect

[WIP patch] Inconsistent notification position

Reported by: gaben Owned by: team
Priority: normal Milestone:
Component: Core Version:
Keywords: notification position Cc:

Description (last modified by gaben)

What steps will reproduce the problem?

  1. Do something which produces a notification (upload, tool error etc.)
  2. Pay attention of the notification position
  3. Repeat steps 1-2 with full screen mode

What is the expected result?

Notification position is consistent among viewing modes.

What happens instead?

Full screen messes up the notifications position and also in normal mode the position is a bit off.

Please provide any additional information below. Attach a screenshot if possible.


Revision:18750
Is-Local-Build:true
Build-Date:2023-06-11 16:13:37

Identification: JOSM/1.5 (18750 SVN en) Linux Ubuntu 20.04.6 LTS
Memory Usage: 236 MB / 2480 MB (75 MB allocated, but free)
Java version: 11.0.19+7-post-Ubuntu-0ubuntu120.04.1, Ubuntu, OpenJDK 64-Bit Server VM
Look and Feel: javax.swing.plaf.metal.MetalLookAndFeel
Screen: :0.0 1918×1020 (scaling 1.00×1.00)
Maximum Screen Size: 1918×1020
Best cursor sizes: 16×16→16×16, 32×32→32×32
Environment variable LANG: hu_HU.UTF-8
System property file.encoding: UTF-8
System property sun.jnu.encoding: UTF-8
Locale info: en_HU
Numbers with default locale: 1234567890 -> 1234567890
Desktop environment: ubuntu:GNOME
Java package: openjdk-11-jre:amd64-11.0.19+7~us1-0ubuntu1~20.04.1
Java ATK Wrapper package: libatk-wrapper-java:all-0.37.1-1
fonts-noto: fonts-noto:-
VM arguments: [-Dfile.encoding=UTF-8]
Program arguments: [--debug, ${HOME}/Letöltések/Teleki_cycle.osm.gz]
Dataset consistency test: No problems found

Plugins:
+ utilsplugin2 (36079)

Validator rules:
+ https://josm.openstreetmap.de/josmfile?page=Rules/Runways&zip=1

Attachments (3)

josm_23002_notification.patch (5.1 KB ) - added by gaben 21 months ago.
patch.gif (115.5 KB ) - added by gaben 21 months ago.
y_axis_zero.png (19.2 KB ) - added by gaben 21 months ago.

Download all attachments as: .zip

Change History (11)

by gaben, 21 months ago

by gaben, 21 months ago

Attachment: patch.gif added

comment:1 by gaben, 21 months ago

Description: modified (diff)

fix gif position

comment:2 by gaben, 21 months ago

Keywords: notification position added

comment:3 by gaben, 21 months ago

Just noticed #22751 which can mess up the positions (therefore this patch) a little bit.

comment:4 by taylor.smock, 21 months ago

I just merged #22751. Let me know if/when you've checked to make certain it hasn't borked your patch.

comment:5 by gaben, 21 months ago

Milestone: 23.06
Summary: [patch] Inconsistent notification position[WIP patch] Inconsistent notification position

It did, completely.

Honestly, I've spent too much time on this and it's going nowhere.

Edit: It does affect Linux when the notification has more than one line (as on the animation).

Last edited 21 months ago by gaben (previous) (diff)

in reply to:  5 comment:6 by taylor.smock, 21 months ago

Replying to gaben:

It did, completely.

Sorry about that.

Honestly, I've spent too much time on this and it's going nowhere.

The hard part will be figuring out how to test it so that we don't regress.

by gaben, 21 months ago

Attachment: y_axis_zero.png added

comment:7 by gaben, 21 months ago

No probs, it happens.

So if you set notification's y-axis via y = mapViewPos.y here source:josm/trunk/src/org/openstreetmap/josm/gui/NotificationManager.java?rev=18763#L143, it should show up touching the map view's top.

Instead, this is what you get after applying #22751:


comment:8 by gaben, 21 months ago

There is a visual debugger, that may help https://netbeans.apache.org/kb/docs/java/debug-visual.html

Unfortunately, I wasn't able to get JOSM run in Netbeans :(

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The owner will remain team.
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from team to the specified user.
Next status will be 'needinfo'. The owner will be changed from team to gaben.
as duplicate The resolution will be set to duplicate. Next status will be 'closed'. The specified ticket will be cross-referenced with this ticket.
The owner will be changed from team to anonymous. Next status will be 'assigned'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.