metrics: show metrics table if it shoots off horizontal x axis

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
Rohit Yadav 2015-09-18 14:00:03 +05:30
parent 5c37238042
commit 1bd7ef6b73
1 changed files with 3 additions and 1 deletions

View File

@ -54,7 +54,9 @@
listView: metricsListView
});
// Make metrics tables horizontally scrollable
$('.panel::has(.data-table)::not(.reduced)').css({overflow: 'auto'});
$panel = $('.panel::has(.data-table)::not(.reduced)');
$panel.css({'overflow': 'auto'});
$panel.find('.list-view').css({'overflow-x': 'visible'});
// Refresh metrics when refresh button is clicked
$('.refreshMetrics').click(metricsListView.refreshMetrics);
}