scroll settings into view
This commit is contained in:
parent
c212c762cf
commit
6bc4b75af6
|
@ -2047,6 +2047,7 @@
|
|||
border-radius: 5px;
|
||||
padding: 5px 7px;
|
||||
max-height: 175px;
|
||||
margin-bottom: 20px;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
|
@ -2102,6 +2103,7 @@
|
|||
display: block;
|
||||
margin-left: auto;
|
||||
padding: 2px 16px;
|
||||
transition: opacity 250ms ease;
|
||||
}
|
||||
|
||||
.bda-slist .bda-footer button:disabled {
|
||||
|
|
|
@ -2272,6 +2272,10 @@ class V2C_PluginCard extends BDV2.reactComponent {
|
|||
showSettings() {
|
||||
if (!this.settingsPanel) return;
|
||||
this.setState({'settings': true});
|
||||
BDV2.reactDom.findDOMNode(this).scrollIntoView({
|
||||
behavior: "smooth", // or "auto" or "instant"
|
||||
block: "start" // or "end"
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue