Opened 8 weeks ago

Last modified 8 weeks ago

#23654 new defect

[WIP patch] Attribution text misalignment

Reported by: gaben Owned by: team
Priority: trivial Milestone:
Component: JMapViewer Version:
Keywords: template_report Cc:


What steps will reproduce the problem?

  1. Open a layer which has an attribution
  2. Check the alignment on the lower right corner

What is the expected result?

There is even padding around the text

What happens instead?

No padding on the right, makes hard to read the end.

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

Build-Date:2024-05-01 14:57:09

Identification: JOSM/1.5 (19067 SVN en) Linux Ubuntu 22.04.4 LTS
Memory Usage: 386 MB / 3988 MB (79 MB allocated, but free)
Java version: 21.0.2+13-Ubuntu-122.04.1, Private Build, OpenJDK 64-Bit Server VM
Look and Feel: javax.swing.plaf.metal.MetalLookAndFeel
Screen: :0.0 1912×1020 (scaling 1.00×1.00)
Maximum Screen Size: 1912×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 ATK Wrapper package: libatk-wrapper-java:all-0.38.0-5build1
fonts-noto: fonts-noto:-
VM arguments: [--add-exports=java.base/, --add-exports=java.desktop/com.sun.imageio.plugins.jpeg=ALL-UNNAMED, --add-exports=java.desktop/com.sun.imageio.spi=ALL-UNNAMED, -javaagent:${HOME}/progs/idea/lib/idea_rt.jar=42693:${HOME}/progs/idea/bin, -Dfile.encoding=UTF-8, -Dsun.stdout.encoding=UTF-8, -Dsun.stderr.encoding=UTF-8]

Attachments (3)

before.png (32.0 KB ) - added by gaben 8 weeks ago.
after.png (32.1 KB ) - added by gaben 8 weeks ago.
josm_23654.patch (3.3 KB ) - added by gaben 8 weeks ago.

Download all attachments as: .zip

Change History (5)

by gaben, 8 weeks ago

Attachment: before.png added

by gaben, 8 weeks ago

Attachment: after.png added

comment:1 by gaben, 8 weeks ago

It's just 5px padding which is missing.

by gaben, 8 weeks ago

Attachment: josm_23654.patch added

comment:2 by gaben, 8 weeks ago

Marked it as WIP, because I want to understand the attrTermsText printing part, which is probably simplifyable.

Modify Ticket

Change Properties
Set your email in Preferences
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.