Modify

Opened 11 years ago

Closed 11 years ago

Last modified 11 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 11 years ago.
small test case

Download all attachments as: .zip

Change History (8)

by bastiK, 11 years ago

Attachment: GeometryUnity.java added

small test case

comment:1 by bastiK, 11 years ago

output of test case:

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

comment:2 by Don-vip, 11 years ago

Shouldn't it be reported to Ubuntu ?

comment:3 by bastiK, 11 years ago

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 by Don-vip, 11 years ago

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

Version 0, edited 11 years ago by Don-vip (next)

in reply to:  4 comment:5 by bastiK, 11 years ago

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 by bastiK, 11 years ago

Resolution: othersoftware
Status: newclosed

comment:7 by Don-vip, 11 years ago

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. Next status will be 'reopened'.

Add Comment


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