Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » RAP 2.2 Full screen app - resize does not work
RAP 2.2 Full screen app - resize does not work [message #1108756] Sat, 14 September 2013 09:50 Go to next message
Bruno Sinou is currently offline Bruno SinouFriend
Messages: 22
Registered: December 2010
Location: Berlin
Junior Member
Hi,

I recently try my Rap application to switch from 2.1 to 2.2 in order to test and prepare future migration, and it seems that the full page mechanism is broken.

The inner page does not resize when the browser page size changes (Firefox 17.0.8 on centOS 6.4).

(I simply do as described in the FAQ: http://wiki.eclipse.org/RAP/FAQ#How_to_create_a_fullscreen_application)

Do I miss something ? Should I report a bug ?

Thanks in advance for any hint.

Bruno

[Updated on: Sat, 14 September 2013 09:56]

Report message to a moderator

Re: RAP 2.2 Resize does not work [message #1108786 is a reply to message #1108756] Sat, 14 September 2013 10:56 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 1873
Registered: July 2009
Senior Member
Hi Bruno,
I've managed to reproduce it with our Workbench Demo. Here is the bug
report:
417254: Shell is not resized to display bounds if it is maximized at runtime
https://bugs.eclipse.org/bugs/show_bug.cgi?id=417254
As a workaround add dummy Display resize listener manually:
display.addListener( SWT.Resize, new Listener() { ... });
Thanks,
Ivan

On 9/14/2013 12:50 PM, Bruno Sinou wrote:
> Hi,
> I recently try my Rap application to switch from 2.1 to 2.2 in order
> to test and prepare future migration, and it seems that the full page
> mechanism is broken.
>
> The inner page does not resize when the browser page size changes
> (Firefox 17.0.8 on centOS 6.4).
> (I simply do as described in the FAQ:
> http://wiki.eclipse.org/RAP/FAQ#How_to_create_a_fullscreen_application)
>
> Do I miss something ? Should I report a bug ?
>
> Thanks in advance for any hint.
>
> Bruno

--
Ivan Furnadjiev

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: RAP 2.2 Resize does not work [message #1109048 is a reply to message #1108786] Sat, 14 September 2013 20:59 Go to previous messageGo to next message
Bruno Sinou is currently offline Bruno SinouFriend
Messages: 22
Registered: December 2010
Location: Berlin
Junior Member
Hi Ivan,

Thanks for checking and reporting the issue.
And by the way, you guys have done great job with these 2.x releases, a thumb up and many thanks.

Cheers, Bruno


PS: if it might be of some help to anyone, here is the entire snippet I add at the end of the WorkbenchWondowAdviser.preWindowOpen( ) method :

Display.getCurrent().addListener(SWT.Resize, new Listener() {
   @Override
   public void handleEvent(Event event) {
      Rectangle bounds = event.display.getBounds();
      IWorkbenchWindow iww = UIPlugin.getDefault().getWorkbench()
						.getActiveWorkbenchWindow();
      iww.getShell().setBounds(bounds);
   }
});

... Not very difficult once we have Ivan's tip
Re: RAP 2.2 Resize does not work [message #1109379 is a reply to message #1109048] Sun, 15 September 2013 09:44 Go to previous message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 1873
Registered: July 2009
Senior Member
Hi Bruno,
the issue is fixed in git master.
Best,
Ivan

On 9/14/2013 11:59 PM, Bruno Sinou wrote:
> Hi Ivan,
> Thanks for checking and reporting the issue.
> And by the way, you guys have done great job with these 2.x releases,
> a thumb up and many thanks.
>
> Cheers, Bruno
>
>
> PS: if it might be of some help to anyone, here is the entire snippet
> I add at the end of the WorkbenchWondowAdviser.preWindowOpen( ) method :
>
>
> Display.getCurrent().addListener(SWT.Resize, new Listener() {
> @Override
> public void handleEvent(Event event) {
> Rectangle bounds = event.display.getBounds();
> IWorkbenchWindow iww = UIPlugin.getDefault().getWorkbench()
> .getActiveWorkbenchWindow();
> iww.getShell().setBounds(bounds);
> }
> });
>
> .. Not very difficult once we have Ivan's tip

--
Ivan Furnadjiev

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Previous Topic:DateTime widget : java.lang.UnsupportedOperationException: Not a number: "18"
Next Topic:Running RAP application offline
Goto Forum:
  


Current Time: Mon Dec 22 15:55:47 GMT 2014

Powered by FUDForum. Page generated in 0.93629 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software