mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-25 15:37:56 +01:00
some css changes..
This commit is contained in:
parent
715d3d49b6
commit
ddc5b933ad
@ -28,7 +28,7 @@ mindplot.widget.IconPanel = new Class({
|
|||||||
},
|
},
|
||||||
|
|
||||||
buildPanel:function () {
|
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) {
|
content.on('click', function (event) {
|
||||||
event.stopPropagation()
|
event.stopPropagation()
|
||||||
});
|
});
|
||||||
@ -48,12 +48,8 @@ mindplot.widget.IconPanel = new Class({
|
|||||||
var img = $('<img>')
|
var img = $('<img>')
|
||||||
.attr('id', iconId)
|
.attr('id', iconId)
|
||||||
.attr('src', mindplot.ImageIcon.prototype._getImageUrl(iconId))
|
.attr('src', mindplot.ImageIcon.prototype._getImageUrl(iconId))
|
||||||
.css({
|
.attr('class', 'panelIcon');
|
||||||
width:16,
|
|
||||||
height:16,
|
|
||||||
padding:"0px 2px",
|
|
||||||
cursor:'pointer'
|
|
||||||
});
|
|
||||||
familyContent.append(img);
|
familyContent.append(img);
|
||||||
|
|
||||||
var panel = this;
|
var panel = this;
|
||||||
|
@ -35,7 +35,7 @@ mindplot.widget.ListToolbarPanel = new Class({
|
|||||||
|
|
||||||
_updateSelectedItem: function () {
|
_updateSelectedItem: function () {
|
||||||
var panelElem = this.getPanelElem();
|
var panelElem = this.getPanelElem();
|
||||||
var menuElems = panelElem.getElements('div');
|
var menuElems = panelElem.find('div');
|
||||||
var value = this.getModel().getValue();
|
var value = this.getModel().getValue();
|
||||||
_.each(menuElems, function (elem) {
|
_.each(menuElems, function (elem) {
|
||||||
var elemValue = $defined(elem.getAttribute('model')) ? elem.getAttribute('model') : elem.id;
|
var elemValue = $defined(elem.getAttribute('model')) ? elem.getAttribute('model') : elem.id;
|
||||||
|
@ -135,4 +135,12 @@ div.shareModalDialog {
|
|||||||
padding-left: 19px;
|
padding-left: 19px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.panelIcon {
|
||||||
|
width:16px;
|
||||||
|
height:16px;
|
||||||
|
margin-left: 4px;
|
||||||
|
margin-top: 3px;
|
||||||
|
cursor: pointer
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user