Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 232649 Details for
Bug 411390
[IE] VI binding 2w only moves caret one world
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
fix
file_411390.txt (text/plain), 4.17 KB, created by
Silenio Quarti
on 2013-06-21 11:24:15 EDT
(
hide
)
Description:
fix
Filename:
MIME Type:
Creator:
Silenio Quarti
Created:
2013-06-21 11:24:15 EDT
Size:
4.17 KB
patch
obsolete
>diff --git a/bundles/org.eclipse.orion.client.editor/web/orion/editor/textView.js b/bundles/org.eclipse.orion.client.editor/web/orion/editor/textView.js >index 97b287a..dfff119 100644 >--- a/bundles/org.eclipse.orion.client.editor/web/orion/editor/textView.js >+++ b/bundles/org.eclipse.orion.client.editor/web/orion/editor/textView.js >@@ -1141,50 +1141,48 @@ > var document = child.ownerDocument; > var lineChild; > var step = data.count < 0 ? -1 : 1; >- while (data.count !== 0) { >- if (offset === model.getLineEnd(lineIndex)) { >- lineChild = child.lastChild; >- while (lineChild && lineChild.ignoreChars) { >- lineChild = lineChild.previousSibling; >- } >- if (!lineChild) { >- return lineOffset; >- } >- range = document.body.createTextRange(); >- range.moveToElementText(lineChild); >- length = range.text.length; >- range.moveEnd(data.unit, data.count); >- result = offset + range.text.length - length; >- } else if (offset === lineOffset && data.count < 0) { >- result = lineOffset; >- } else { >- lineChild = child.firstChild; >- while (lineChild) { >- var textNode = lineChild.firstChild; >- var nodeLength = textNode.length; >- if (lineChild.ignoreChars) { >- nodeLength -= lineChild.ignoreChars; >- } >- if (lineOffset + nodeLength > offset) { >- range = document.body.createTextRange(); >- if (offset === lineOffset && data.count < 0) { >- range.moveToElementText(lineChild.previousSibling); >- } else { >- range.moveToElementText(lineChild); >- range.collapse(); >- range.moveEnd("character", offset - lineOffset); //$NON-NLS-0$ >- } >- length = range.text.length; >- range.moveEnd(data.unit, data.count); >- result = offset + range.text.length - length; >- break; >- } >- lineOffset = nodeLength + lineOffset; >- lineChild = lineChild.nextSibling; >- } >+ if (offset === model.getLineEnd(lineIndex)) { >+ lineChild = child.lastChild; >+ while (lineChild && lineChild.ignoreChars) { >+ lineChild = lineChild.previousSibling; > } >- data.count -= step; >+ if (!lineChild) { >+ return lineOffset; >+ } >+ range = document.body.createTextRange(); >+ range.moveToElementText(lineChild); >+ length = range.text.length; >+ range.moveEnd(data.unit, step); >+ result = offset + range.text.length - length; >+ } else if (offset === lineOffset && data.count < 0) { >+ result = lineOffset; >+ } else { >+ lineChild = child.firstChild; >+ while (lineChild) { >+ var textNode = lineChild.firstChild; >+ var nodeLength = textNode.length; >+ if (lineChild.ignoreChars) { >+ nodeLength -= lineChild.ignoreChars; >+ } >+ if (lineOffset + nodeLength > offset) { >+ range = document.body.createTextRange(); >+ if (offset === lineOffset && data.count < 0) { >+ range.moveToElementText(lineChild.previousSibling); >+ } else { >+ range.moveToElementText(lineChild); >+ range.collapse(); >+ range.moveEnd("character", offset - lineOffset); //$NON-NLS-0$ >+ } >+ length = range.text.length; >+ range.moveEnd(data.unit, step); >+ result = offset + range.text.length - length; >+ break; >+ } >+ lineOffset = nodeLength + lineOffset; >+ lineChild = lineChild.nextSibling; >+ } > } >+ data.count -= step; > return result; > }, > /** @private */ >@@ -5782,8 +5780,10 @@ > var rect = range.getClientRects()[0]; > var cursorParent = this._cursorDiv.parentNode; > var clientRect = cursorParent.getBoundingClientRect(); >- this._cursorDiv.style.top = (rect.top - clientRect.top + cursorParent.scrollTop) + "px"; //$NON-NLS-0$ >- this._cursorDiv.style.left = (rect.left - clientRect.left + cursorParent.scrollLeft) + "px"; //$NON-NLS-0$ >+ if (rect && clientRect) { >+ this._cursorDiv.style.top = (rect.top - clientRect.top + cursorParent.scrollTop) + "px"; //$NON-NLS-0$ >+ this._cursorDiv.style.left = (rect.left - clientRect.left + cursorParent.scrollLeft) + "px"; //$NON-NLS-0$ >+ } > } > } else if (document.selection) { > if (!this._hasFocus) { return; }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 411390
: 232649