Zooming not working in 2.1.1 [message #1132840] |
Fri, 11 October 2013 08:21  |
Eclipse User |
|
|
|
Hello
I'm updating our application from RAP 1.4.2 to 2.1.1.
I have a command handler which zooms the rap application (only in IE), this is the Javascript I use:
"window.parent.document.body.style.zoom=1.2;"
In RAP 1.4.2 executed as:
org.eclipse.rwt.internal.widgets.JSExecutor.executeJS(script);
and in RAP 2.1.1 executed as:
JavaScriptExecutor javaScriptExecutor = RWT.getClient().getService(JavaScriptExecutor.class);
javaScriptExecutor.execute(script);
In RAP 2.1.1 this is not working anymore.
I tried another zoom, but the result is not the same, the RAP application is scaled really bad.
"window.parent.document.body.style.transform = 'scale(1.2)';"
Searching the forum I came across this thread http://www.eclipse.org/forums/index.php/t/366381/,
maybe there is a way to enabled zooming even if it is not working clean?
Or maybe these two topics are not related at all...
Is there some zooming functionality already implemented in RAP and I did not find it?
Thanks for any help/hint
Flavio
|
|
|
|
|
Re: Zooming not working in 2.1.1 [message #1139102 is a reply to message #1137264] |
Tue, 15 October 2013 10:39  |
Eclipse User |
|
|
|
Hi.
> Even if it is instable, is there a way to enable it?
We did not "disable" it, the bug is only about the glitches that might
happen if you do it anyway. Scaling by JS API is not specifically
supported or unsupported, it's a browser feature. The fact that it
doesn't work anymore after switching from 1.4.2 to 2.1.1. is likely
because IE9+ now renders RAP in "standard mode" as opposed to "quirksmode".
>
> Are there any plans to fix zooming handling? The issue states sometime
> past 2.1.
Hard to say. Since the glitches can be fixed with a simple refresh it
currently does not seem very pressing.
Greetings,
Tim
>
> greets
> Flavio
--
Tim Buschtöns
Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/
Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
|
|
|
Powered by
FUDForum. Page generated in 0.24755 seconds