scroll settings into view

This commit is contained in:
Zack Rauen 2017-11-01 14:01:03 -04:00
parent c212c762cf
commit 6bc4b75af6
2 changed files with 6 additions and 0 deletions

View File

@ -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 {

View File

@ -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"
});
}
}