mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-22 14:17:57 +01:00
Minor fix.
This commit is contained in:
parent
7194269826
commit
c472b95b20
@ -40,19 +40,33 @@ mindplot.Note = new Class({
|
|||||||
this.tip = new mindplot.widget.FloatingTip(this.getImage()._peer._native, {
|
this.tip = new mindplot.widget.FloatingTip(this.getImage()._peer._native, {
|
||||||
// Content can also be a function of the target element!
|
// Content can also be a function of the target element!
|
||||||
content: function() {
|
content: function() {
|
||||||
var result = new Element('div', {text:this._noteModel.getText()});
|
var result = new Element('div');
|
||||||
result.setStyles({
|
|
||||||
|
var title = new Element('div', {text:'Note'});
|
||||||
|
title.setStyles({
|
||||||
|
'font-weight':'bold',
|
||||||
|
color:'black',
|
||||||
|
'padding-bottom':'5px',
|
||||||
|
width: '100px'
|
||||||
|
});
|
||||||
|
title.inject(result);
|
||||||
|
|
||||||
|
var text = new Element('div', {text:this._noteModel.getText()});
|
||||||
|
text.setStyles({
|
||||||
'white-space': 'pre-wrap',
|
'white-space': 'pre-wrap',
|
||||||
'word-wrap': 'break-word'
|
'word-wrap': 'break-word'
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
text.inject(result);
|
||||||
|
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}.bind(this),
|
}.bind(this),
|
||||||
html: true,
|
html: true,
|
||||||
position: 'bottom', // Bottom positioned
|
position: 'bottom', // Bottom positioned
|
||||||
center: false, // Place the tip aligned with target
|
center: true, // Place the tip aligned with target
|
||||||
arrowSize: 6, // A bigger arrow! ); // Title attribute will be used as tip.
|
arrowSize: 6, // A bigger arrow! ); // Title attribute will be used as tip.
|
||||||
offset : {x:0,y:20}
|
offset : {x:10,y:20}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -638,8 +638,9 @@ div.installCFG h2{
|
|||||||
background-color: #dfcf3c;
|
background-color: #dfcf3c;
|
||||||
padding: 5px 15px;
|
padding: 5px 15px;
|
||||||
color: #666666;
|
color: #666666;
|
||||||
font-weight: bold;
|
/*font-weight: bold;*/
|
||||||
font-size: 11px;
|
/*width: 100px;*/
|
||||||
|
font-size: 13px;
|
||||||
-moz-border-radius: 3px;
|
-moz-border-radius: 3px;
|
||||||
-webkit-border-radius: 3px;
|
-webkit-border-radius: 3px;
|
||||||
border-radius: 3px;
|
border-radius: 3px;
|
||||||
|
Loading…
Reference in New Issue
Block a user