Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsZooming not working in 2.1.1
https://www.eclipse.org/forums/index.php/mv/msg/545951/1132840/#msg_1132840
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]]>Flavio Donze2013-10-11T12:21:19-00:00Re: Zooming not working in 2.1.1
https://www.eclipse.org/forums/index.php/mv/msg/545951/1136889/#msg_1136889
zooming in runtime is dangerous and leads to layout and other problems
in IE. See bug:
351218: Improve support for browser-zooming on runtime https://bugs.eclipse.org/bugs/show_bug.cgi?id=351218
Best,
Ivan
On 10/11/2013 3:21 PM, Flavio Donze wrote:
> 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
Professional services for RAP and RCP? http://eclipsesource.com/services/rap/]]>Ivan Furnadjiev2013-10-14T06:00:50-00:00Re: Zooming not working in 2.1.1
https://www.eclipse.org/forums/index.php/mv/msg/545951/1137264/#msg_1137264
Thanks for your reply and pointing me to this issue.
Even if it is instable, is there a way to enable it?
Are there any plans to fix zooming handling? The issue states sometime past 2.1.
greets
Flavio]]>Flavio Donze2013-10-14T11:16:46-00:00Re: Zooming not working in 2.1.1
https://www.eclipse.org/forums/index.php/mv/msg/545951/1139102/#msg_1139102
> 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.