diff --git a/apps/common/main/lib/component/DataView.js b/apps/common/main/lib/component/DataView.js index f9330fdf0..12086f023 100644 --- a/apps/common/main/lib/component/DataView.js +++ b/apps/common/main/lib/component/DataView.js @@ -1371,8 +1371,8 @@ define([ selected: false }; me.recentShapes.unshift(model); - if (me.recentShapes.length > 12) { - me.recentShapes.splice(12, 1); + if (me.recentShapes.length > 14) { + me.recentShapes.splice(14, 1); } me.groups.at(0).groupStore.reset(me.recentShapes); diff --git a/apps/presentationeditor/main/app/view/Toolbar.js b/apps/presentationeditor/main/app/view/Toolbar.js index e61ef9e40..a7cfddcc4 100644 --- a/apps/presentationeditor/main/app/view/Toolbar.js +++ b/apps/presentationeditor/main/app/view/Toolbar.js @@ -1687,17 +1687,19 @@ define([ }, updateAutoshapeMenu: function (menuShape, collection) { - var me = this; + var me = this, + index = $(menuShape.el).prop('id').slice(-1); var menuitem = new Common.UI.MenuItem({ - template: _.template('
') + template: _.template(''), + index: index }); menuShape.addItem(menuitem); var recents = Common.localStorage.getItem('pe-recent-shapes'); var shapePicker = new Common.UI.DataViewShape({ - el: $('#id-toolbar-menu-insertshape'), + el: $('#id-toolbar-menu-insertshape-'+index), itemTemplate: _.template(''), groups: collection.toJSON(), parentMenu: menuShape, diff --git a/apps/presentationeditor/main/resources/less/app.less b/apps/presentationeditor/main/resources/less/app.less index a97cba396..535340819 100644 --- a/apps/presentationeditor/main/resources/less/app.less +++ b/apps/presentationeditor/main/resources/less/app.less @@ -258,7 +258,7 @@ } .menu-shapes { - width: 358px; + width: 362px; padding-top: 8px; .menu-insertshape { margin: 5px 5px 0 10px; @@ -268,5 +268,6 @@ } .dataview .grouped-data .group-items-container .item { box-shadow: none; + margin: 2px 2px 2px; } } \ No newline at end of file