diff --git a/plugins/c9.ide.layout.classic/icons/sync.png b/plugins/c9.ide.layout.classic/icons/sync.png new file mode 100644 index 00000000..76bdbab8 Binary files /dev/null and b/plugins/c9.ide.layout.classic/icons/sync.png differ diff --git a/plugins/c9.ide.layout.classic/icons/sync@2x.png b/plugins/c9.ide.layout.classic/icons/sync@2x.png new file mode 100644 index 00000000..9197db11 Binary files /dev/null and b/plugins/c9.ide.layout.classic/icons/sync@2x.png differ diff --git a/plugins/c9.ide.ui/lib_apf.js b/plugins/c9.ide.ui/lib_apf.js index c6715caf..daa1efbc 100644 --- a/plugins/c9.ide.ui/lib_apf.js +++ b/plugins/c9.ide.ui/lib_apf.js @@ -33568,6 +33568,8 @@ apf.splitbutton = function(struct, tagName) { var _self = this; this.$ext = this.$pHtmlNode.appendChild(document.createElement("div")); this.$ext.className = "splitbutton"; + if (this.getAttribute("style")) + this.$ext.setAttribute("style", this.getAttribute("style")); var skin = this["button-skin"] || this.getAttribute("skin") || this.localName; diff --git a/plugins/c9.ide.ui/menus.js b/plugins/c9.ide.ui/menus.js index 57206a7b..256a678d 100644 --- a/plugins/c9.ide.ui/menus.js +++ b/plugins/c9.ide.ui/menus.js @@ -951,6 +951,9 @@ define(function(require, exports, module) { aml = new ui.menu({ id: options.id, zindex: options.zindex, + visible: options.visible, + width: options.width, + height: options.height, "onprop.visible" : function(e) { emit(e.value ? "show" : "hide", lastCoords); checkItems.call(this, e); @@ -1057,6 +1060,18 @@ define(function(require, exports, module) { */ get zindex(){ return aml && ui.getStyle(aml.$ext, "z-index"); }, set zindex(value) { aml && aml.setAttribute("zindex", value); }, + /** + * Specifies the width of the menu + * @property {Number} width + */ + get width(){ return aml && aml.getWidth(); }, + set width(value) { aml && aml.setAttribute("width", value); }, + /** + * Specifies the height of the menu + * @property {Number} height + */ + get height(){ return aml && aml.getHeight(); }, + set height(value) { aml && aml.setAttribute("height", value); }, /** * The menu items appended to this menu * @property {MenuItem[]} items