mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Auto-scale svg with viewport
This commit is contained in:
parent
a3c8b09547
commit
a16b38a91b
@ -313,8 +313,9 @@ angular.module('kibana.map2', [])
|
||||
|
||||
//create the new svg
|
||||
scope.svg = d3.select(elem[0]).append("svg")
|
||||
.attr("width", width)
|
||||
.attr("height", height)
|
||||
.attr("width", "100%")
|
||||
.attr("height", "100%")
|
||||
.attr("viewBox", "0 0 " + width + " " + height)
|
||||
.attr("transform", "translate(" + width / 2 + "," + height / 2 + ")")
|
||||
.call(scope.zoom);
|
||||
scope.g = scope.svg.append("g");
|
||||
|
Loading…
Reference in New Issue
Block a user