DSDSWeb/static/js/Cesium-1.53/ThirdParty/dojo-release-1.10.4/dijit/_base/scroll.js

23 lines
568 B
JavaScript
Raw Normal View History

2024-07-11 18:02:47 +08:00
define([
"dojo/window", // windowUtils.scrollIntoView
"../main" // export symbol to dijit
], function(windowUtils, dijit){
// module:
// dijit/_base/scroll
/*=====
return {
// summary:
// Back compatibility module, new code should use windowUtils directly instead of using this module.
};
=====*/
dijit.scrollIntoView = function(/*DomNode*/ node, /*Object?*/ pos){
// summary:
// Scroll the passed node into view, if it is not already.
// Deprecated, use `windowUtils.scrollIntoView` instead.
windowUtils.scrollIntoView(node, pos);
};
});