mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 09:19:04 -04:00
[ML] Fix Single metric viewer time slider border not adjusting to window size changes (#117946) (#118409)
* SMV context brush border investigation * [ML] Remove smvTimeSlider Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: Quynh Nguyen <43350163+qn895@users.noreply.github.com>
This commit is contained in:
parent
7667ca42a6
commit
3018f56bd1
1 changed files with 6 additions and 4 deletions
|
@ -1203,15 +1203,16 @@ class TimeseriesChartIntl extends Component {
|
|||
.call(brush)
|
||||
.selectAll('rect')
|
||||
.attr('y', -1)
|
||||
.attr('height', contextChartHeight + swimlaneHeight + 1);
|
||||
.attr('height', contextChartHeight + swimlaneHeight + 1)
|
||||
.attr('width', this.vizWidth);
|
||||
|
||||
const handleBrushExtent = brush.extent();
|
||||
|
||||
// move the left and right resize areas over to
|
||||
// be under the handles
|
||||
contextGroup.selectAll('.w rect').attr('x', -10).attr('width', 10);
|
||||
|
||||
contextGroup.selectAll('.e rect').attr('x', 0).attr('width', 10);
|
||||
|
||||
const handleBrushExtent = brush.extent();
|
||||
contextGroup.selectAll('.e rect').attr('transform', null).attr('width', 10);
|
||||
|
||||
const topBorder = contextGroup
|
||||
.append('rect')
|
||||
|
@ -1247,6 +1248,7 @@ class TimeseriesChartIntl extends Component {
|
|||
function brushing() {
|
||||
const brushExtent = brush.extent();
|
||||
mask.reveal(brushExtent);
|
||||
|
||||
leftHandle.attr('x', contextXScale(brushExtent[0]) - 10);
|
||||
rightHandle.attr('x', contextXScale(brushExtent[1]) + 0);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue