Skip to content

Commit

Permalink
single svg layer doesn't get position: absolute - closes #52
Browse files Browse the repository at this point in the history
  • Loading branch information
1wheel committed Dec 12, 2017
1 parent 307eab1 commit 5afd1cf
Show file tree
Hide file tree
Showing 3 changed files with 17,762 additions and 5 deletions.
7 changes: 3 additions & 4 deletions build/d3-jetpack.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,8 @@
}(this, (function (exports,d3Selection,d3Transition,d3Array,d3Axis,d3Scale,d3Collection,d3Queue,d3Request) { 'use strict';

var translateSelection = function(xy, dim) {


return this.node().getBBox ?
var node = this.node();
return !node ? this : node.getBBox ?
this.attr('transform', function(d,i) {
var p = typeof xy == 'function' ? xy.call(this, d,i) : xy;
if (dim === 0) p = [p, 0]; else if (dim === 1) p = [0, p];
Expand Down Expand Up @@ -297,7 +296,7 @@ var conventions = function(c){
var layer;
if (type == 's'){
layer = c.sel.append('svg')
.st({position: 'absolute'})
.st({position: c.layers ? 'absolute' : ''})
.attr('width', c.totalWidth)
.attr('height', c.totalHeight)
.append('g')
Expand Down
Loading

0 comments on commit 5afd1cf

Please sign in to comment.