mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-06-28 00:40:07 +02:00
Resolves #418 switch to bounding client rect due to weird chrome bug
This commit is contained in:
parent
71c8700ad1
commit
6d88297e0b
1 changed files with 2 additions and 2 deletions
|
@ -289,7 +289,7 @@ var VisBranch = VisBase.extend({
|
|||
getTextSize: function() {
|
||||
var getTextWidth = function(visBranch) {
|
||||
var textNode = (visBranch.get('text')) ? visBranch.get('text').node : null;
|
||||
return (textNode === null) ? 0 : textNode.clientWidth;
|
||||
return (textNode === null) ? 0 : textNode.getBoundingClientRect().width;
|
||||
};
|
||||
|
||||
var firefoxFix = function(obj) {
|
||||
|
@ -502,7 +502,7 @@ var VisBranch = VisBase.extend({
|
|||
if (this.getIsGoalAndNotCompared()) {
|
||||
return this.get('stroke-width') / 5.0;
|
||||
}
|
||||
|
||||
|
||||
return this.get('stroke-width');
|
||||
},
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue