and also bug about backbone events throwing random args

This commit is contained in:
Peter Cottle 2012-10-27 18:21:18 -07:00
parent 6c6c789da8
commit eb254126cb
3 changed files with 20 additions and 17 deletions

View file

@ -123,14 +123,11 @@ var VisBranch = VisBase.extend({
},
getRectPosition: function() {
console.log('before text pos');
var pos = this.getTextPosition();
console.log('wut');
var f = this.get('flip');
// first get text width and height
console.log('before text size');
var textSize = this.getTextSize();
console.log('text size');
return {
x: pos.x - 0.5 * textSize.w - this.get('hPad'),
y: pos.y - 0.5 * textSize.h - this.get('vPad')