[fix] canvas width
This commit is contained in:
parent
b33216274c
commit
df2d35c77d
2
dist/frappe-gantt.js
vendored
2
dist/frappe-gantt.js
vendored
@ -392,7 +392,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
||||
|
||||
function set_width() {
|
||||
var cur_width = self.canvas.node.getBoundingClientRect().width;
|
||||
var actual_width = self.canvas.getBBox().width;
|
||||
var actual_width = self.canvas.select('#grid .grid-row').attr('width');
|
||||
if (cur_width < actual_width) {
|
||||
self.canvas.attr('width', actual_width);
|
||||
}
|
||||
|
||||
2
dist/frappe-gantt.js.map
vendored
2
dist/frappe-gantt.js.map
vendored
File diff suppressed because one or more lines are too long
@ -253,7 +253,7 @@ export default function Gantt(element, tasks, config) {
|
||||
|
||||
function set_width() {
|
||||
const cur_width = self.canvas.node.getBoundingClientRect().width;
|
||||
const actual_width = self.canvas.getBBox().width;
|
||||
const actual_width = self.canvas.select('#grid .grid-row').attr('width');
|
||||
if(cur_width < actual_width) {
|
||||
self.canvas.attr('width', actual_width);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user