Scroll to the element when using in the drive
This commit is contained in:
parent
fe0961b24b
commit
df2069eb4a
@ -2772,7 +2772,12 @@ define([
|
|||||||
}
|
}
|
||||||
});*/
|
});*/
|
||||||
|
|
||||||
|
var $sel = $content.find('.cp-app-drive-element-selected');
|
||||||
|
if ($sel.length) {
|
||||||
|
$sel[0].scrollIntoView();
|
||||||
|
} else {
|
||||||
$content.scrollTop(s);
|
$content.scrollTop(s);
|
||||||
|
}
|
||||||
appStatus.ready(true);
|
appStatus.ready(true);
|
||||||
};
|
};
|
||||||
var displayDirectory = APP.displayDirectory = function (path, force) {
|
var displayDirectory = APP.displayDirectory = function (path, force) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user