From c472b95b208751b5e6347b403dbfdf46883ef5c8 Mon Sep 17 00:00:00 2001 From: Paulo Veiga Date: Fri, 7 Oct 2011 00:50:07 -0300 Subject: [PATCH] Minor fix. --- mindplot/src/main/javascript/Note.js | 22 ++++++++++++++++++---- wise-doc/src/main/webapp/css/common.css | 5 +++-- 2 files changed, 21 insertions(+), 6 deletions(-) diff --git a/mindplot/src/main/javascript/Note.js b/mindplot/src/main/javascript/Note.js index 729cddcd..08197f91 100644 --- a/mindplot/src/main/javascript/Note.js +++ b/mindplot/src/main/javascript/Note.js @@ -40,19 +40,33 @@ mindplot.Note = new Class({ this.tip = new mindplot.widget.FloatingTip(this.getImage()._peer._native, { // Content can also be a function of the target element! content: function() { - var result = new Element('div', {text:this._noteModel.getText()}); - result.setStyles({ + var result = new Element('div'); + + 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', 'word-wrap': 'break-word' } ); + text.inject(result); + + return result; }.bind(this), html: true, 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. - offset : {x:0,y:20} + offset : {x:10,y:20} }); }, diff --git a/wise-doc/src/main/webapp/css/common.css b/wise-doc/src/main/webapp/css/common.css index ee14d782..3806223d 100644 --- a/wise-doc/src/main/webapp/css/common.css +++ b/wise-doc/src/main/webapp/css/common.css @@ -638,8 +638,9 @@ div.installCFG h2{ background-color: #dfcf3c; padding: 5px 15px; color: #666666; - font-weight: bold; - font-size: 11px; + /*font-weight: bold;*/ + /*width: 100px;*/ + font-size: 13px; -moz-border-radius: 3px; -webkit-border-radius: 3px; border-radius: 3px;