You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pivot.apache.org by "Greg Brown (JIRA)" <ji...@apache.org> on 2010/01/03 14:59:54 UTC
[jira] Created: (PIVOT-376) Alerts briefly show at wrong location
when opened
Alerts briefly show at wrong location when opened
-------------------------------------------------
Key: PIVOT-376
URL: https://issues.apache.org/jira/browse/PIVOT-376
Project: Pivot
Issue Type: Bug
Components: wtk
Reporter: Greg Brown
Priority: Minor
Fix For: 1.4.1
Occurs on newer Java versions on Mac OS X 10.6. When a new alert (or dialog) is opened, the window may momentarily appear at 0, 0 and then shift to the center.
Possible fix is to set the dialog's visibility to false when it is opened and then reset it to true after it has been repositioned.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (PIVOT-376) Alerts briefly show at wrong location
when opened
Posted by "Greg Brown (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PIVOT-376?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Greg Brown resolved PIVOT-376.
------------------------------
Resolution: Fixed
Assignee: Greg Brown
The flicker occurs because newer versions of Java on OS X coalesce paint events differently than previous versions (as well as JREs on other operating systems). Java on OS X now allows paint events to occur before queued callbacks run, so the dialog was being painted at its initial size and location before being repositioned.
The reposition logic now runs in the windowOpened() event itself rather than a callback, so the flicker does not occur.
> Alerts briefly show at wrong location when opened
> -------------------------------------------------
>
> Key: PIVOT-376
> URL: https://issues.apache.org/jira/browse/PIVOT-376
> Project: Pivot
> Issue Type: Bug
> Components: wtk
> Reporter: Greg Brown
> Assignee: Greg Brown
> Priority: Minor
> Fix For: 1.4.1
>
>
> Occurs on newer Java versions on Mac OS X 10.6. When a new alert (or dialog) is opened, the window may momentarily appear at 0, 0 and then shift to the center.
> Possible fix is to set the dialog's visibility to false when it is opened and then reset it to true after it has been repositioned.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.