diff --git a/dashboard-ui/scripts/actionsheet.js b/dashboard-ui/scripts/actionsheet.js
index 52c2bcdc41..3588e050ce 100644
--- a/dashboard-ui/scripts/actionsheet.js
+++ b/dashboard-ui/scripts/actionsheet.js
@@ -49,9 +49,9 @@
}
if (options.title) {
- html += '
';
+ html += '';
html += options.title;
- html += '
';
+ html += '';
}
// There seems to be a bug with this in safari causing it to immediately roll up to 0 height
@@ -61,12 +61,15 @@
html += '';
}
- // If any items have an icon, give them all an icon just to make sure they're all lined up evenly
- var renderIcon = options.items.filter(function (o) {
+ var itemsWithIcons = options.items.filter(function(o) {
return o.ironIcon;
- }).length;
+ });
- if (options.title && !renderIcon) {
+ // If any items have an icon, give them all an icon just to make sure they're all lined up evenly
+ var renderIcon = itemsWithIcons.length;
+ var center = options.title && (!itemsWithIcons.length || itemsWithIcons.length != options.items.length);
+
+ if (center) {
html += '';
} else {
html += '';
@@ -78,9 +81,13 @@
html += '