Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » RAP browser scrolling(How to enable browser scrolling for RAP)
RAP browser scrolling [message #1007250] Tue, 05 February 2013 04:22 Go to next message
John Gymer is currently offline John Gymer
Messages: 185
Registered: November 2012
Location: UK
Senior Member
What is the suggested method to enable scrolling within the browser for a RAP application? This would be for shells run in fullscreen mode:
newShell.setFullScreen(true)

...and also displays containing a number of shells of different sizes NOT in fullscreen mode too.

Where the overall design and position/size of the shells is larger than the browser can fit in, how do you enable browser scrolling to be able to get to them?
Currently you just get placed at some position and cannot scroll around to get to the rest of the widgets on the shells, or indeed other shells that happen to be off the browser's current view.

I don't really want to use scrolled composites, as I need to have the flexibility of multiple shells too.

Surely I have missed some obvious property that switches scrolling on/off for the browser?

Presumably there is also something that enables resize in the browser too? I've tested my RAP application on a number of devices in their browser, and the usual pinch to resize has no effect, so it appears that it is deliberately switched off for the RAP application...?

Thanks, John


---
Just because you can doesn't mean you should
Re: RAP browser scrolling [message #1007536 is a reply to message #1007250] Wed, 06 February 2013 05:55 Go to previous messageGo to next message
Tim Buschtoens is currently offline Tim Buschtoens
Messages: 379
Registered: July 2009
Senior Member
Hi.

> Surely I have missed some obvious property that switches scrolling
> on/off for the browser?

No.

Though we considered it, we did not (yet) enable page scrolling in RAP,
mostly for potential cross-browser and mouse coordinate issues. It's not
at all out of the question as a feature, we just don't know yet what
exactly the consequences might be. It's also a bit more work than just
change one or two css properties, since some javascript code might rely
on the page not to be scrolled.

There is a bug for this, though the hack mentioned won't work anymore:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=355852

>
> Presumably there is also something that enables resize in the browser
> too? I've tested my RAP application on a number of devices in their
> browser, and the usual pinch to resize has no effect, so it appears that
> it is deliberately switched off for the RAP application...?

Yes, we did this on purpose too, but you should be able re-activate it.
In the RAP html page that contains the application, there is a tag in
the head:
"<meta name="viewport" content="initial-scale=1.0, minimum-scale=1.0,
maximum-scale=1.0" >"

Using ApplicationConfiguration or Branding you can add meta tags/html to
the sites head, which should allow you to overwrite this with another
meta tag of the same type and other values. Should that not work, then
you'd have to change the rwt-index.html file directly in the rwt bundle.
However, all this is not officially supported, so any issues that result
from that change are currently not considered bugs.

I how that helps. If you need that scrolling feature you should vote on
the bug. More votes make it more likely to be implemented.

Greetings,
Tim


>
> Thanks, John
>

--
Tim Buschtöns

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

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: RAP browser scrolling [message #1011447 is a reply to message #1007536] Tue, 19 February 2013 10:11 Go to previous message
John Gymer is currently offline John Gymer
Messages: 185
Registered: November 2012
Location: UK
Senior Member
Thanks Tim.
I have voted for the bug, to have scrolling supported by default in RAP.
I couldn't get the resize working though... the meta tags via Branding didn't appear to have any effect and I'm not using ApplicationConfiguration. Interestingly, IE and Chrome (probably other PC-based browsers) give you zoom feature anyway, but the pinch-style resize didn't work on Chrome on my Android device.
Not a big deal I guess, but it would be good to get support for pinch-style resize on device browsers working some time in the not-to-distant future.
Thanks, John


---
Just because you can doesn't mean you should
Previous Topic:RAP Table: Row sometimes empty
Next Topic:Zipped download shows moving page!
Goto Forum:
  


Current Time: Fri Aug 01 10:01:14 EDT 2014

Powered by FUDForum. Page generated in 0.16112 seconds