* Scroll into view when select metric in preview.

This commit is contained in:
zhouxin
2024-04-18 13:48:06 +08:00
parent 93016b109b
commit df08d0e72a
+5
View File
@@ -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();