Speed up reveal of search dialogs

This commit is contained in:
Nick O'Leary 2017-01-09 22:08:54 +00:00
parent 0a41b07297
commit 29594726ca
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9
2 changed files with 2 additions and 2 deletions

View File

@ -255,7 +255,7 @@ RED.search = (function() {
if (dialog === null) {
createDialog();
}
dialog.slideDown();
dialog.slideDown(300);
RED.events.emit("search:open");
visible = true;
}

View File

@ -187,7 +187,7 @@ RED.typeSearch = (function() {
RED.events.emit("type-search:open");
//shade.show();
dialog.css({left:opts.x+"px",top:opts.y+"px"}).show();
searchResultsDiv.slideDown();
searchResultsDiv.slideDown(300);
setTimeout(function() {
searchResultsDiv.find(".red-ui-editableList-container").scrollTop(0);
searchInput.focus();