Modify

Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#8387 closed defect (othersoftware)

JDialog moves down in Ubuntu Unity

Reported by: bastiK Owned by: team
Priority: normal Milestone:
Component: Core Version:
Keywords: Unity Cc:

Description

If you open a dialog box (e.g. download dialog) the position and size should be restored to the previous values.
However on my system, the box has moved down 28 pixels each time it is opened.

This seems to be caused by a Java or Unity bug:

If you set dlg.setLocation(300,400); and later run dlg.getLocation() or dlg.getLocationOnScreen(), then the result should be (300,400), but in fact it is (301,428).

java version "1.6.0_24"
OpenJDK Runtime Environment (IcedTea6 1.11.5) (6b24-1.11.5-0ubuntu1~12.10.1)
OpenJDK 64-Bit Server VM (build 20.0-b12, mixed mode)

and

java version "1.7.0_09"
OpenJDK Runtime Environment (IcedTea7 2.3.4) (7u9-2.3.4-0ubuntu1.12.10.1)
OpenJDK 64-Bit Server VM (build 23.2-b09, mixed mode)

Ubuntu 12.10

Attachments (1)

GeometryUnity.java (1.3 KB) - added by bastiK 9 years ago.
small test case

Download all attachments as: .zip

Change History (8)

Changed 9 years ago by bastiK

Attachment: GeometryUnity.java added

small test case

comment:1 Changed 9 years ago by bastiK

output of test case:

dlg.getLocationOnScreen()=java.awt.Point[x=300,y=400]
dlg.getLocationOnScreen()=java.awt.Point[x=301,y=428]

comment:2 Changed 9 years ago by Don-vip

Shouldn't it be reported to Ubuntu ?

comment:3 Changed 9 years ago by bastiK

Sure, just reported here: https://bugs.launchpad.net/ubuntu/+bug/1110138

Maybe we can find a workaround in the meantime, because it's quite annoying. :)

comment:4 Changed 9 years ago by Don-vip

Thanks. I have added JOSM and myself as impacted project/user, it increases the bug heat :)

Last edited 9 years ago by Don-vip (previous) (diff)

comment:5 in reply to:  4 Changed 9 years ago by bastiK

Replying to Don-vip:

Thanks. I have added JOSM and myself as impacted project/user, it increases the bug heat :)

Thanks to you too, it seems to have worked. (That and assigning it to the correct project. :) )
Closing this ticket because upstream bugfix is on the way.

comment:6 Changed 9 years ago by bastiK

Resolution: othersoftware
Status: newclosed

comment:7 Changed 9 years ago by Don-vip

nice :)

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain team.
as The resolution will be set.
The resolution will be deleted.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.