fix: date higlight
This commit is contained in:
parent
a72b75a2f1
commit
0cefc57624
@ -149,10 +149,10 @@ export default class Bar {
|
||||
$date_highlight.classList.add('date-highlight')
|
||||
$date_highlight.style.height = this.height * 0.8 + 'px'
|
||||
$date_highlight.style.width = this.width + 'px'
|
||||
$date_highlight.style.top = this.gantt.options.header_height - 21 + 'px'
|
||||
$date_highlight.style.top = this.gantt.options.header_height - 19 + 'px'
|
||||
$date_highlight.style.left = x + 'px'
|
||||
this.$date_highlight = $date_highlight
|
||||
this.gantt.$lower_header.appendChild($date_highlight)
|
||||
this.gantt.$lower_header.prepend($date_highlight)
|
||||
|
||||
|
||||
|
||||
@ -334,11 +334,11 @@ export default class Bar {
|
||||
return;
|
||||
}
|
||||
this.update_attr(bar, "x", x);
|
||||
this.update_attr(this.$date_highlight, "x", x);
|
||||
this.$date_highlight.style.left = x + 'px'
|
||||
}
|
||||
if (width) {
|
||||
this.update_attr(bar, "width", width);
|
||||
this.update_attr(this.$date_highlight, "width", width);
|
||||
this.$date_highlight.style.width = width + 'px'
|
||||
}
|
||||
this.update_label_position();
|
||||
this.update_handle_position();
|
||||
|
||||
@ -68,7 +68,7 @@ $light-blue: #c4c4e9 !default;
|
||||
}
|
||||
|
||||
.date-highlight {
|
||||
border: 2px dotted black;
|
||||
background-color: $text-muted;
|
||||
border-radius: 12px;
|
||||
z-index: 1;
|
||||
position: absolute;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user