* Scroll into view when select metric in preview.
This commit is contained in:
@@ -9,6 +9,11 @@ window.afterPageUpdate = function($target, info, options)
|
||||
}
|
||||
window.filterChecked = {};
|
||||
|
||||
if(viewType == 'single')
|
||||
{
|
||||
var metricCurrent = $('.metric-tree .metric-current');
|
||||
if(metricCurrent.length) metricCurrent[0].scrollIntoView({block: 'center', inline: 'start' })
|
||||
}
|
||||
if(viewType == 'multiple')
|
||||
{
|
||||
window.renderCheckedLabel();
|
||||
|
||||
Reference in New Issue
Block a user