Reduce Mootools components.

This commit is contained in:
Paulo Gustavo Veiga
2014-03-04 20:47:23 -03:00
parent 4c6484ff00
commit 4c83b27e6f
50 changed files with 10255 additions and 1248 deletions

View File

@@ -26,8 +26,8 @@ mindplot.MultilineTextEditor = new Class({
_buildEditor:function () {
var result = new Element('div');
result.set('id',"textContainer")
result.setStyles({
position:"absolute",
display:"none",
zIndex:"8",
overflow:"hidden",
@@ -192,10 +192,14 @@ mindplot.MultilineTextEditor = new Class({
var displayFunc = function () {
// Position the editor and set the size...
var textShape = topic.getTextShape();
textShape.positionRelativeTo(this._containerElem, {
position:{x:'left', y:'top'},
edge:{x:'left', y:'top'}
$('#textContainer')[0].position({
my: "left top",
at: "left bottom",
of: $(textShape)[0]
// collision: "fit"
});
this._containerElem.setStyle('display', 'block');
// Set editor's initial text ...