SimpleAddUi: scroll to top if a preset is chosen

This commit is contained in:
Pieter Vander Vennet 2022-02-09 00:35:59 +01:00
parent 77a19d33f8
commit 452bf39561
5 changed files with 40 additions and 17 deletions

View file

@ -39,6 +39,10 @@ export default abstract class BaseUIElement {
return this;
}
public ScrollToTop(){
this._constructedHtmlElement?.scrollTo(0,0)
}
/**
* Adds all the relevant classes, space separated