ngx-render-material-forms 1.5.4 → 1.5.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/lib/components/select/select.component.mjs +11 -9
- package/fesm2015/ngx-render-material-forms.js +10 -8
- package/fesm2015/ngx-render-material-forms.mjs.map +1 -1
- package/fesm2020/ngx-render-material-forms.js +10 -8
- package/fesm2020/ngx-render-material-forms.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -2706,14 +2706,16 @@ class MaterialSelectComponent extends MaterialComponent {
|
|
|
2706
2706
|
this.productsloadingFlag = true;
|
|
2707
2707
|
setTimeout(() => {
|
|
2708
2708
|
const ele = this.selectElem?.panel?.nativeElement;
|
|
2709
|
-
|
|
2710
|
-
|
|
2711
|
-
|
|
2712
|
-
|
|
2713
|
-
|
|
2714
|
-
|
|
2715
|
-
|
|
2716
|
-
}
|
|
2709
|
+
const trackHeight = ele.scrollHeight - ele.offsetHeight;
|
|
2710
|
+
const middlePosition = trackHeight / 2 - 50;
|
|
2711
|
+
ele.scrollTo({ top: middlePosition, behavior: 'auto' });
|
|
2712
|
+
// if (ele) {
|
|
2713
|
+
// const trackHeight = ele.scrollHeight - ele.offsetHeight
|
|
2714
|
+
// const middlePosition = trackHeight / 2 - 50;
|
|
2715
|
+
// ele.scrollTo({ top: middlePosition, behavior: 'auto' });
|
|
2716
|
+
// } else {
|
|
2717
|
+
// console.log('Panel element is not available yet.');
|
|
2718
|
+
// }
|
|
2717
2719
|
}, 250);
|
|
2718
2720
|
}
|
|
2719
2721
|
}
|