mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-06-28 08:50:06 +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() {
|
getTextSize: function() {
|
||||||
var getTextWidth = function(visBranch) {
|
var getTextWidth = function(visBranch) {
|
||||||
var textNode = (visBranch.get('text')) ? visBranch.get('text').node : null;
|
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) {
|
var firefoxFix = function(obj) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue