I am using Zoom Extension Gantt Docs to implement zoom, but I am having a problem with column widths.
zoomConfig i am using is:
var zoomConfig = {
maxColumnWidth: 72,
minColumnWidth: 32,
levels: [
{
name:“day1”,
min_column_width:72,
scales:[
{unit: “month”, step: 1, format: “%M %Y”},
{unit: “day”, step: 1, format: “%d %M”}
]
},
{
name:“day2”,
min_column_width:48,
scales:[
{unit: “month”, step: 1, format: “%M %Y”},
{unit: “day”, step: 1, format: “%d %M”}
]
},
{
name:“day3”,
min_column_width:32,
scales:[
{unit: “month”, step: 1, format: “%M %Y”},
{unit: “day”, step: 1, format: “%d %M”}
]
},
{
name:“month1”,
min_column_width:72,
scales:[
{unit: “year”, step: 1, format: “%Y”},
{unit: “month”, step: 1, format: “%M %Y”}
]
},
{
name:“month2”,
min_column_width:48,
scales:[
{unit: “year”, step: 1, format: “%Y”},
{unit: “month”, step: 1, format: “%M %Y”}
]
},
{
name:“month3”,
min_column_width:32,
scales:[
{unit: “year”, step: 1, format: “%Y”},
{unit: “month”, step: 1, format: “%M %Y”}
]
}
]
};
Problem is that on wide screens, for example on 4096px screens in the month view the month scale column width doesn’t follow maxColumnWidth and its 240px instead of 72px.
Is there a way to set a maxColumnWidth for a scale column that gantt will follow?