mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-07-16 09:34:28 +02:00
Resolves #429 eliminate clientWidth in favor of getBoundingClientRect
This commit is contained in:
parent
be3a565ccd
commit
97e6eef62f
3 changed files with 9 additions and 7 deletions
|
@ -301,9 +301,10 @@ var VisBranch = VisBase.extend({
|
|||
var textNode = this.get('text').node;
|
||||
if (this.get('isHead')) {
|
||||
// HEAD is a special case
|
||||
var size = textNode.getBoundingClientRect();
|
||||
return firefoxFix({
|
||||
w: textNode.clientWidth,
|
||||
h: textNode.clientHeight
|
||||
w: size.width,
|
||||
h: size.height
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue