[
https://issues.jboss.org/browse/JBIDE-8701?page=com.atlassian.jira.plugin...
]
Yahor Radtsevich edited comment on JBIDE-8701 at 1/17/12 1:29 PM:
------------------------------------------------------------------
The browser widget may be scrolled also by calling:
{code:java}
nsIDOMWindow.scrollTo(int xScroll, int yScroll)
{code}
And you should be able to listen to the browser scrolling events using something like
this:
{code:java}
nsIDOMEventListener listener = new nsIDOMEventListener() {
public nsISupports queryInterface(String interfaceId) {
return interfaceId.equals(nsIDOMEventListener.NS_IDOMEVENTLISTENER_IID) ? this :
null;
}
public void handleEvent(nsIDOMEvent event) {
int pageYOffset = queryInterface(window,
nsIDOMWindowInternal.class).getPageYOffset();
// scroll the source here
}
}
queryInterface(window, nsIDOMEventTarget.class).addEventListener("scroll",
listener, false);
{code}
was (Author: yradtsevich):
The browser widget may be scrolled also by calling:
{code:java}
nsIDOMWindow.scrollTo(int xScroll, int yScroll)
{code}
VPE editor row lock on Visual/Source page
-----------------------------------------
Key: JBIDE-8701
URL:
https://issues.jboss.org/browse/JBIDE-8701
Project: Tools (JBoss Tools)
Issue Type: Feature Request
Components: Visual Page Editor core
Affects Versions: 3.2.0.Final
Reporter: Jiri Peterka
Assignee: Denis Maliarevich
Fix For: 3.3.0.Beta1
When Horizontal splitting with the Source Editor is set it would be nice to have switch
to have row locked to keep the corresponding visual element on the same row as in the
source part and vice versa.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira