some css changes..

This commit is contained in:
Ezequiel Bergamaschi 2014-04-27 23:59:45 -03:00
parent 715d3d49b6
commit ddc5b933ad
3 changed files with 12 additions and 8 deletions

View File

@ -28,7 +28,7 @@ mindplot.widget.IconPanel = new Class({
},
buildPanel:function () {
var content = $('<div class="toolbarPanel" id="IconsPanel"></div>').css({width: 253, height: 230, padding: 5});
var content = $('<div class="toolbarPanel" id="IconsPanel"></div>').css({width: 253, height: 230});
content.on('click', function (event) {
event.stopPropagation()
});
@ -48,12 +48,8 @@ mindplot.widget.IconPanel = new Class({
var img = $('<img>')
.attr('id', iconId)
.attr('src', mindplot.ImageIcon.prototype._getImageUrl(iconId))
.css({
width:16,
height:16,
padding:"0px 2px",
cursor:'pointer'
});
.attr('class', 'panelIcon');
familyContent.append(img);
var panel = this;

View File

@ -35,7 +35,7 @@ mindplot.widget.ListToolbarPanel = new Class({
_updateSelectedItem: function () {
var panelElem = this.getPanelElem();
var menuElems = panelElem.getElements('div');
var menuElems = panelElem.find('div');
var value = this.getModel().getValue();
_.each(menuElems, function (elem) {
var elemValue = $defined(elem.getAttribute('model')) ? elem.getAttribute('model') : elem.id;

View File

@ -135,4 +135,12 @@ div.shareModalDialog {
padding-left: 19px;
}
.panelIcon {
width:16px;
height:16px;
margin-left: 4px;
margin-top: 3px;
cursor: pointer
}