From 2397834335648cf6b1423913e2b7fa2fdeb4a7c2 Mon Sep 17 00:00:00 2001 From: Stratoula Kalafateli Date: Mon, 14 Dec 2020 16:39:09 +0200 Subject: [PATCH 1/2] Fix bug on vertical scrolling when the legends list is too big --- src/plugins/vis_type_xy/public/_chart.scss | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/plugins/vis_type_xy/public/_chart.scss b/src/plugins/vis_type_xy/public/_chart.scss index 1f49892b870f4..01e045cf73f7f 100644 --- a/src/plugins/vis_type_xy/public/_chart.scss +++ b/src/plugins/vis_type_xy/public/_chart.scss @@ -1,5 +1,11 @@ .xyChart__container { - width: 100%; - height: 100%; - position: relative; + display: flex; + flex: 1 1 auto; + min-height: 0; + min-width: 0; + position: absolute; + top: 0; + right: 0; + bottom: 0; + left: 0; } From d9137f1c63123d5a45ffc94ef33c92d05313d1db Mon Sep 17 00:00:00 2001 From: Stratoula Kalafateli Date: Mon, 14 Dec 2020 16:48:24 +0200 Subject: [PATCH 2/2] Remove unecessary styles --- src/plugins/vis_type_xy/public/_chart.scss | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/plugins/vis_type_xy/public/_chart.scss b/src/plugins/vis_type_xy/public/_chart.scss index 01e045cf73f7f..ac9d4ed04aec4 100644 --- a/src/plugins/vis_type_xy/public/_chart.scss +++ b/src/plugins/vis_type_xy/public/_chart.scss @@ -1,8 +1,4 @@ .xyChart__container { - display: flex; - flex: 1 1 auto; - min-height: 0; - min-width: 0; position: absolute; top: 0; right: 0;