You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pivot.apache.org by "Vesa Muukka (JIRA)" <ji...@apache.org> on 2015/03/04 09:44:05 UTC
[jira] [Updated] (PIVOT-966) UI zooming and buttons detection in
Apache Pivot at program start
[ https://issues.apache.org/jira/browse/PIVOT-966?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Vesa Muukka updated PIVOT-966:
------------------------------
Description:
Zooming UI at program start wents right but all buttons responds from wrong locations (as if the zoom/scale factor would still be the default 1.0).
This effect can be easily tested with ApachePivot org.apache.pivot.demos.text.TextPaneDemo
by adding ScaleDecorator & setScale before window.open(display) call like this:
....
final ScaleDecorator sd = new ScaleDecorator();
window.getDecorators().add( sd );
sd.setHorizontalAlignment( HorizontalAlignment.LEFT );
sd.setVerticalAlignment( VerticalAlignment.TOP );
sd.setScale( 2.0f );
sd.update();
window.open(display);
textPane.requestFocus();
}
The program UI will scale correctly the but buttons will react from wrong locations.
There is a issue report in the pivot-user mailing list archives: March 2015 with the same header as well with more information.
was:
Zooming UI at program start wents right but all buttons responds from wrong locations (as if the zoom/scale factor would still be the default 1.0).
This effect can be easily tested with ApachePivot org.apache.pivot.demos.text.TextPaneDemo
by adding ScaleDecorator & setScale before window.open(display) call like this:
....
final ScaleDecorator sd = new ScaleDecorator();
window.getDecorators().add( sd );
sd.setHorizontalAlignment( HorizontalAlignment.LEFT );
sd.setVerticalAlignment( VerticalAlignment.TOP );
sd.setScale( 2.0f );
sd.update();
window.open(display);
textPane.requestFocus();
}
The program UI will scale correctly the but buttons will react from wrong locations.
> UI zooming and buttons detection in Apache Pivot at program start
> -----------------------------------------------------------------
>
> Key: PIVOT-966
> URL: https://issues.apache.org/jira/browse/PIVOT-966
> Project: Pivot
> Issue Type: Bug
> Components: wtk-effects
> Affects Versions: 2.0.4, 2.1
> Environment: Ubuntu 14.04 LTS 64bit, Oracle JDK 1.7.0-65
> Reporter: Vesa Muukka
>
> Zooming UI at program start wents right but all buttons responds from wrong locations (as if the zoom/scale factor would still be the default 1.0).
> This effect can be easily tested with ApachePivot org.apache.pivot.demos.text.TextPaneDemo
> by adding ScaleDecorator & setScale before window.open(display) call like this:
> ....
> final ScaleDecorator sd = new ScaleDecorator();
> window.getDecorators().add( sd );
> sd.setHorizontalAlignment( HorizontalAlignment.LEFT );
> sd.setVerticalAlignment( VerticalAlignment.TOP );
> sd.setScale( 2.0f );
> sd.update();
> window.open(display);
> textPane.requestFocus();
> }
> The program UI will scale correctly the but buttons will react from wrong locations.
> There is a issue report in the pivot-user mailing list archives: March 2015 with the same header as well with more information.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)