summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSilenio Quarti <silenio_quarti@ca.ibm.com>2013-10-03 12:18:20 -0400
committerBogdan Gheorghe <gheorghe@ca.ibm.com>2013-10-04 11:29:09 -0400
commitd0ae403ebe357862d385e42abb8354e8693f509c (patch)
tree8276ab3afb75304e741bcef9b12afc48371e5c55
parent04f1559f5bf070f19a202c4b119f364eccbb576e (diff)
downloadorg.eclipse.orion.client-origin/4.0M2_maintenance.zip
org.eclipse.orion.client-origin/4.0M2_maintenance.tar.gz
org.eclipse.orion.client-origin/4.0M2_maintenance.tar.bz2
Put back the max-width of non text tooltips to 110emorigin/4.0M2_maintenance
-rw-r--r--bundles/org.eclipse.orion.client.ui/web/css/theme.css5
-rw-r--r--bundles/org.eclipse.orion.client.ui/web/orion/webui/tooltip.js6
2 files changed, 9 insertions, 2 deletions
diff --git a/bundles/org.eclipse.orion.client.ui/web/css/theme.css b/bundles/org.eclipse.orion.client.ui/web/css/theme.css
index 95d963f..060ee24 100644
--- a/bundles/org.eclipse.orion.client.ui/web/css/theme.css
+++ b/bundles/org.eclipse.orion.client.ui/web/css/theme.css
@@ -429,7 +429,10 @@ a.currentLocation:hover {
z-index: 200;
background: transparent;
position: absolute;
- max-width: 50em;
+ max-width: 110em;
+}
+.tooltip .textContent {
+ max-width: 40em;
}
.tooltip {
color: #fafafa;
diff --git a/bundles/org.eclipse.orion.client.ui/web/orion/webui/tooltip.js b/bundles/org.eclipse.orion.client.ui/web/orion/webui/tooltip.js
index dd0b18b..4ab049a 100644
--- a/bundles/org.eclipse.orion.client.ui/web/orion/webui/tooltip.js
+++ b/bundles/org.eclipse.orion.client.ui/web/orion/webui/tooltip.js
@@ -91,8 +91,11 @@ define(['require', 'orion/webui/littlelib'], function(require, lib) {
this._tipInner = document.createElement("div"); //$NON-NLS-0$
this._tipInner.classList.add("tooltip"); //$NON-NLS-0$
if (this._text) {
+ this._tipTextContent = document.createElement("div"); //$NON-NLS-0$
+ this._tipTextContent.classList.add("textContent"); //$NON-NLS-0$
+ this._tipInner.appendChild(this._tipTextContent);
var textNode = document.createTextNode(this._text);
- this._tipInner.appendChild(textNode);
+ this._tipTextContent.appendChild(textNode);
}
this._tip.appendChild(this._tipInner);
document.body.appendChild(this._tip);
@@ -276,6 +279,7 @@ define(['require', 'orion/webui/littlelib'], function(require, lib) {
document.body.removeChild(this._tip);
this._tip = null;
this._tipInner = null;
+ this._tipTextContent = null;
this._tail = null;
}
}