Skip to main content


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 09:22 Go to next message
John Gymer is currently offline John GymerFriend
Messages: 279
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 10:55 Go to previous messageGo to next message
Tim Buschtoens is currently offline Tim BuschtoensFriend
Messages: 396
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 15:11 Go to previous messageGo to next message
John Gymer is currently offline John GymerFriend
Messages: 279
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
Re: RAP browser scrolling [message #1479449 is a reply to message #1011447] Wed, 19 November 2014 12:41 Go to previous messageGo to next message
Emmanuel Marchal is currently offline Emmanuel MarchalFriend
Messages: 10
Registered: June 2014
Location: Belo Horizonte, Brazil
Junior Member
Hi there,
Is there any plan to get the pinch-zoom reactivated?
Thanks,
Emmanuel
Re: RAP browser scrolling [message #1513441 is a reply to message #1479449] Tue, 16 December 2014 14:41 Go to previous message
Björn Harmen Gerth is currently offline Björn Harmen GerthFriend
Messages: 4
Registered: December 2014
Junior Member
Hello,

I was recently assigned to an existing RAP prototype in a project and I have been hunting for four days for the answer why half of the input fields on any form are not accessible.
I am frankly quite astonished to learn that it's the default behavior of the framework to hide the controls even though in code I am passing SWT.V_SCROLL as style.

Yes, I now voted for bug #355852 and yes, I suppose I will have to work with ScrolledComposite. But I wonder why the developer is burdened with such tasks as firstly SWT provides V_SCROLL/H_SCROLL as constants and secondly browsers easily provide scrolling if the viewport is too small.

Best regards
Björn
Previous Topic:SWT Resources RAP
Next Topic:keyPressed event lacks propper stateMask on first event?
Goto Forum:
  


Current Time: Thu Mar 28 19:33:05 GMT 2024

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

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

Back to the top