summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Moffatt <emoffatt@ca.ibm.com>2015-06-15 14:35:33 -0400
committerEric Moffatt <emoffatt@ca.ibm.com>2015-06-15 14:35:33 -0400
commit1bf4a2dacde9ba6bc10a336133b3aa7dffa109f7 (patch)
treeb92056c0f40cf694954aa11494ea822187627dc6
parent007e79a8cbc190e91d50eb3ca944bf7161be4714 (diff)
downloadorg.eclipse.orion.client-origin/emoffatt/tipLayout.zip
org.eclipse.orion.client-origin/emoffatt/tipLayout.tar.gz
org.eclipse.orion.client-origin/emoffatt/tipLayout.tar.bz2
Clipped JSDoc tweaks (Try 1)origin/emoffatt/tipLayout
-rw-r--r--bundles/org.eclipse.orion.client.editor/web/orion/editor/tooltip.js14
1 files changed, 7 insertions, 7 deletions
diff --git a/bundles/org.eclipse.orion.client.editor/web/orion/editor/tooltip.js b/bundles/org.eclipse.orion.client.editor/web/orion/editor/tooltip.js
index bfcb8d1..ff9bc25 100644
--- a/bundles/org.eclipse.orion.client.editor/web/orion/editor/tooltip.js
+++ b/bundles/org.eclipse.orion.client.editor/web/orion/editor/tooltip.js
@@ -429,8 +429,8 @@ function Tooltip (view) {
tooltipDiv.style.resize = "none"; //$NON-NLS-0$
tooltipDiv.style.top = (info.tooltipArea.top) + "px"; //$NON-NLS-0$
tooltipDiv.style.left = (info.tooltipArea.left) + "px"; //$NON-NLS-0$
- tooltipDiv.style.height = (info.tooltipArea.height - padding) + "px"; //$NON-NLS-0$
- tooltipDiv.style.width = (info.tooltipArea.width - padding) + "px"; //$NON-NLS-0$
+ tooltipDiv.style.height = (info.tooltipArea.height) + "px"; //$NON-NLS-0$
+ tooltipDiv.style.width = (info.tooltipArea.width) + "px"; //$NON-NLS-0$
return info.tooltipArea;
}
@@ -452,7 +452,7 @@ function Tooltip (view) {
var defWidth = viewportWidth;
if (!info.allowFullWidth){
defWidth = Math.min(viewportWidth/2, 600);
- var defHeight = Math.min(viewportHeight/2, 250);
+ var defHeight = Math.min(viewportHeight/2, 450);
tipRect.width = Math.min(tipRect.width, defWidth);
tipRect.height = Math.min(tipRect.height, defHeight);
}
@@ -529,10 +529,10 @@ function Tooltip (view) {
tipRect.maxHeight = Math.min(viewportHeight + viewportTop - tipRect.top, viewportHeight);
// Adjust sizes for div padding, but not the actual tooltip box.
- tooltipDiv.style.maxWidth = (tipRect.maxWidth - padding) + "px"; //$NON-NLS-0$
- tooltipDiv.style.maxHeight = (tipRect.maxHeight - padding) + "px"; //$NON-NLS-0$
- tooltipDiv.style.width = (tipRect.width - padding) + "px"; //$NON-NLS-1$
- tooltipDiv.style.height = (tipRect.height - padding) + "px"; //$NON-NLS-1$
+ tooltipDiv.style.maxWidth = (tipRect.maxWidth) + "px"; //$NON-NLS-0$
+ tooltipDiv.style.maxHeight = (tipRect.maxHeight) + "px"; //$NON-NLS-0$
+ tooltipDiv.style.width = (tipRect.width) + "px"; //$NON-NLS-1$
+ tooltipDiv.style.height = (tipRect.height) + "px"; //$NON-NLS-1$
tooltipDiv.style.left = tipRect.left + "px"; //$NON-NLS-0$
tooltipDiv.style.top = tipRect.top + "px"; //$NON-NLS-0$
return tipRect;