summaryrefslogtreecommitdiffstatsabout
diff options
context:
space:
mode:
authorGabriel Luong2013-05-15 15:58:08 (EDT)
committer libing wang2013-05-16 11:49:42 (EDT)
commitf7dfa7de7ec9888ed3c099424d5cad9541c5b5e2 (patch)
tree0278fec59d9dc0f56da815c771575645f3c51327
parent9087b1014ff6c47b084bc8b172b082717fb488b5 (diff)
downloadorg.eclipse.orion.client-f7dfa7de7ec9888ed3c099424d5cad9541c5b5e2.zip
org.eclipse.orion.client-f7dfa7de7ec9888ed3c099424d5cad9541c5b5e2.tar.gz
org.eclipse.orion.client-f7dfa7de7ec9888ed3c099424d5cad9541c5b5e2.tar.bz2
Bug 408154 - Added the go up image class directly to the button element and fixed the styling for the go-up sprite.
-rw-r--r--bundles/org.eclipse.orion.client.ui/web/css/images.css9
-rw-r--r--bundles/org.eclipse.orion.client.ui/web/orion/commands.js2
-rw-r--r--bundles/org.eclipse.orion.client.ui/web/orion/fileCommands.js1
3 files changed, 6 insertions, 6 deletions
diff --git a/bundles/org.eclipse.orion.client.ui/web/css/images.css b/bundles/org.eclipse.orion.client.ui/web/css/images.css
index 25b5668..f2cec62 100644
--- a/bundles/org.eclipse.orion.client.ui/web/css/images.css
+++ b/bundles/org.eclipse.orion.client.ui/web/css/images.css
@@ -105,11 +105,10 @@
}
.core-sprite-go-up{
- background: url(../images/moveUp.png) no-repeat top left;
- width: 16px;
- height: 16px;
- border: none;
- margin: 2px;
+ background: url(../images/moveUp.png) no-repeat center;
+ width: 24px;
+ height: 24px;
+ border:none;
cursor:pointer;
}
diff --git a/bundles/org.eclipse.orion.client.ui/web/orion/commands.js b/bundles/org.eclipse.orion.client.ui/web/orion/commands.js
index 6c94ead..31bbbdc 100644
--- a/bundles/org.eclipse.orion.client.ui/web/orion/commands.js
+++ b/bundles/org.eclipse.orion.client.ui/web/orion/commands.js
@@ -434,7 +434,7 @@ define(['require', 'orion/util', 'orion/webui/littlelib', 'orion/webui/dropdown'
* to call when the choice is made. Optional.
* @param {String} [options.imageClass] a CSS class name suitable for showing a background image. Optional.
* @param {Boolean} [options.addImageClassToElement] If true, the image class will be added to the element's
- * class list. Otherwise, a span element with the image class is created and appended to the element.
+ * class list. Otherwise, a span element with the image class is created and appended to the element. Optional.
* @param {String} [options.spriteClass] an additional CSS class name that can be used to specify a sprite background image. This
* useful with some sprite generation tools, where imageClass specifies the location in a sprite, and spriteClass describes the
* sprite itself. Optional.
diff --git a/bundles/org.eclipse.orion.client.ui/web/orion/fileCommands.js b/bundles/org.eclipse.orion.client.ui/web/orion/fileCommands.js
index 2369581..a418c99 100644
--- a/bundles/org.eclipse.orion.client.ui/web/orion/fileCommands.js
+++ b/bundles/org.eclipse.orion.client.ui/web/orion/fileCommands.js
@@ -784,6 +784,7 @@ define(['i18n!orion/navigate/nls/messages', 'require', 'orion/webui/littlelib',
// name: messages["Go Up"],
tooltip: messages["Move up to the parent folder"],
imageClass: "core-sprite-go-up", //$NON-NLS-0$
+ addImageClassToElement: true,
id: "eclipse.upFolder", //$NON-NLS-0$
callback: function(data) {
if (typeof explorer.scopeUp === "function") { //$NON-NLS-0$