Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Page is scrolled to the iframe with RAP application(why?)
Page is scrolled to the iframe with RAP application [message #1229285] Thu, 09 January 2014 05:10 Go to next message
Yury Mising name is currently offline Yury Mising name
Messages: 95
Registered: May 2010
Location: Russia
Member
Hello, RAP community!

Open the html with the RAP application in iframe:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>RAP IFRAME</title>
</head>
<body>
<p>
Top
</p>
<iframe scrolling="no" src="http://rap.eclipsesource.com/rapdemo/examples" style="position:absolute;top:800px;" width="800" height="600" marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" allowtransparency="true"></iframe>
</body>
</html>


the page will be scrolled down to the iframe. Why? I guess it appears due to rap element focusing, but how to include our RAP application in other sites without this scrolling?

Best regards,
Yury.
Re: Page is scrolled to the iframe with RAP application [message #1230923 is a reply to message #1229285] Mon, 13 January 2014 11:35 Go to previous messageGo to next message
Yury Mising name is currently offline Yury Mising name
Messages: 95
Registered: May 2010
Location: Russia
Member
Any thoughts? Nobody is interested in this?
Re: Page is scrolled to the iframe with RAP application [message #1231033 is a reply to message #1230923] Mon, 13 January 2014 17:04 Go to previous message
Ralf Sternberg is currently offline Ralf Sternberg
Messages: 1291
Registered: July 2009
Senior Member

I can reproduce this behavior, even with a simple snippet application.
The reason is, as you expect, that there is always a "focus control" in
SWT. The browser's behavior is to scroll the focused element into view.

I can't think of a simple fix, but feel free to open an enhancement
request. I guess you can also create an example without RAP (a focused
form element in an iframe?). If so, maybe you can find some advise on
StackOverflow.com on how to prevent the browser from scrolling the
iframe into view...

Regards,
Ralf

--
Ralf Sternberg

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

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Previous Topic:Focus indicator on TabItem/TabFolder
Next Topic:RAP - qooxdoo: Set selection value of combo box via javascript
Goto Forum:
  


Current Time: Tue Oct 21 07:08:19 GMT 2014

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

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