prettified settings menu

This commit is contained in:
Matthew Kastor 2013-03-31 22:23:37 -04:00 • committed by nightwing
commit cc4d524a8a

View file

@ -188,7 +188,7 @@ define(function(require, exports, module) {
*/ */
function wrapElements() { function wrapElements() {
var topmenu = document.createElement('div'); var topmenu = document.createElement('div');
topmenu.id = 'settingsmenu'; topmenu.setAttribute('id', 'settingsmenu');
elements.forEach(function (element) { elements.forEach(function (element) {
topmenu.appendChild(element); topmenu.appendChild(element);
}); });
@ -218,6 +218,7 @@ define(function(require, exports, module) {
var div = document.createElement('div'); var div = document.createElement('div');
div.setAttribute('contains', item); div.setAttribute('contains', item);
div.setAttribute('class', 'menuEntry'); div.setAttribute('class', 'menuEntry');
div.setAttribute('style', 'clear: both;');
div.appendChild(egen.createLabel(item, item)); div.appendChild(egen.createLabel(item, item));
@ -265,6 +266,7 @@ define(function(require, exports, module) {
} }
}); });
} }
el.style.cssText = 'float:right;';
div.appendChild(el); div.appendChild(el);
return div; return div;
} }
@ -355,7 +357,7 @@ define(function(require, exports, module) {
cleanupElementsList(); cleanupElementsList();
// dump the entries from the elements list and wrap them up in a div // dump the entries from the elements list and wrap them up in a div
// then put the div into the generic menu and show it. // then put the div into the generic menu and show it.
overlayPage(wrapElements(), '0', '0', '0', null); overlayPage(wrapElements(), '0', '0', '0', '75%');
} }
/** /**
* This builds the settings menu and selects * This builds the settings menu and selects