修复gantt图修改日视图后其他视图的pill左移的bug。优化字段默认宽度的逻辑
This commit is contained in:
@@ -774,7 +774,14 @@ var GanttRow = Widget.extend({
|
||||
let index = 0;
|
||||
for (const date of this.viewInfo.slots) {
|
||||
const slotStart = date;
|
||||
const slotStop = date.clone().add(8, interval);
|
||||
// const slotStop = date.clone().add(8, interval);
|
||||
let slotStop;
|
||||
|
||||
if (interval === "hour") {
|
||||
slotStop = date.clone().add(8, "hour");
|
||||
} else {
|
||||
slotStop = date.clone().add(1, interval);
|
||||
}
|
||||
const isToday = date.isSame(new Date(), 'day') && this.state.scale !== 'day';
|
||||
|
||||
let slotStyle = '';
|
||||
|
||||
Reference in New Issue
Block a user