mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-07-14 08:34:26 +02:00
and also bug about backbone events throwing random args
This commit is contained in:
parent
6c6c789da8
commit
eb254126cb
3 changed files with 20 additions and 17 deletions
|
@ -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')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue