text editor with position done

This commit is contained in:
Ezequiel Bergamaschi
2014-05-21 23:51:51 -03:00
parent 001f62b539
commit f817167a7b
4 changed files with 26 additions and 22 deletions

View File

@@ -137,6 +137,10 @@ web2d.Element = new Class({
return this._peer.getPosition();
},
getNativePosition: function() {
return this._peer.getNativePosition();
},
/*
* Defines the element stroke properties.
* width: stroke width

View File

@@ -76,6 +76,10 @@ web2d.peer.svg.TextPeer = new Class({
return this._position;
},
getNativePosition: function() {
return $(this._native).position();
},
setFont: function (font, size, style, weight) {
if ($defined(font)) {
this._font = new web2d.Font(font, this);