diff options
author | Silenio Quarti <silenio_quarti@ca.ibm.com> | 2014-12-08 23:15:40 -0500 |
---|---|---|
committer | Silenio Quarti <silenio_quarti@ca.ibm.com> | 2014-12-08 23:18:02 -0500 |
commit | 2ccea0a2e9a543864f72d3db885637c683072026 (patch) | |
tree | 9ecf3542205f430bdca516ba7631a5040a0eba24 | |
parent | 1bdab02dcbaddd1e90a49a6f57726ac71983f63b (diff) | |
download | org.eclipse.orion.client-origin/stable_20141208.zip org.eclipse.orion.client-origin/stable_20141208.tar.gz org.eclipse.orion.client-origin/stable_20141208.tar.bz2 |
fix primary selection color on chromeorigin/stable_20141208
-rw-r--r-- | bundles/org.eclipse.orion.client.editor/web/orion/editor/textView.js | 4 |
1 files changed, 4 insertions, 0 deletions
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 b656f60..a5f61be 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 @@ -423,6 +423,7 @@ define("orion/editor/textView", [ //$NON-NLS-0$ /** @private */ update: function() { var view = this._view; + var primary = this.primary; var focused = view._hasFocus; var visible = view._cursorVisible; var cursor = !this.primary && this._selection && this._selection.isEmpty(); @@ -436,6 +437,9 @@ define("orion/editor/textView", [ //$NON-NLS-0$ this._divs[0].style.zIndex = visible && cursor ? "2" : "0"; //$NON-NLS-1$ //$NON-NLS-0$ this._divs.forEach(function(div) { div.className = className; + if (util.isWebkit && primary) { + div.style.background = focused ? "transparent" : ""; //$NON-NLS-0$ + } }); }, /** @private */ |