fit-ui 2.20.0 → 2.20.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Fit.UI.js +9 -9
- package/dist/Fit.UI.min.js +1 -1
- package/package.json +1 -1
package/dist/Fit.UI.js
CHANGED
|
@@ -682,7 +682,7 @@ Fit._internal =
|
|
|
682
682
|
{
|
|
683
683
|
Core:
|
|
684
684
|
{
|
|
685
|
-
VersionInfo: { Major: 2, Minor: 20, Patch:
|
|
685
|
+
VersionInfo: { Major: 2, Minor: 20, Patch: 1 } // Do NOT modify format - version numbers are programmatically changed when releasing new versions - MUST be on a separate line!
|
|
686
686
|
}
|
|
687
687
|
};
|
|
688
688
|
|
|
@@ -20131,9 +20131,9 @@ Fit.Controls.DropDown = function(ctlId)
|
|
|
20131
20131
|
// container starts.
|
|
20132
20132
|
// https://github.com/Jemt/Fit.UI/issues/51
|
|
20133
20133
|
|
|
20134
|
-
var scrollParent = Fit.Dom.GetScrollParent(me.GetDomElement());
|
|
20134
|
+
var scrollParent = Fit.Dom.GetScrollParent(me.GetDomElement()); // Null if DropDown or a parent has position:fixed
|
|
20135
20135
|
|
|
20136
|
-
if (scrollParent !== Fit.Dom.GetScrollDocument())
|
|
20136
|
+
if (scrollParent !== null && scrollParent !== Fit.Dom.GetScrollDocument())
|
|
20137
20137
|
{
|
|
20138
20138
|
// Control is positioned within a container with scroll.
|
|
20139
20139
|
// Calculate position relative to viewport to determine
|
|
@@ -20162,10 +20162,10 @@ Fit.Controls.DropDown = function(ctlId)
|
|
|
20162
20162
|
// container ends.
|
|
20163
20163
|
// https://github.com/Jemt/Fit.UI/issues/51 (see re-open comment oct. 30, 2020)
|
|
20164
20164
|
|
|
20165
|
-
var scrollParent = Fit.Dom.GetScrollParent(me.GetDomElement());
|
|
20165
|
+
var scrollParent = Fit.Dom.GetScrollParent(me.GetDomElement()); // Null if DropDown or a parent has position:fixed
|
|
20166
20166
|
var alternativeTopPos = -1;
|
|
20167
20167
|
|
|
20168
|
-
if (scrollParent !== Fit.Dom.GetScrollDocument())
|
|
20168
|
+
if (scrollParent !== null && scrollParent !== Fit.Dom.GetScrollDocument())
|
|
20169
20169
|
{
|
|
20170
20170
|
// Control is positioned within a container with scroll.
|
|
20171
20171
|
// Calculate position relative to viewport to determine
|
|
@@ -22114,7 +22114,7 @@ Fit.Controls.WSDropDown = function(ctlId)
|
|
|
22114
22114
|
|
|
22115
22115
|
Fit.Internationalization.RemoveOnLocaleChanged(localize);
|
|
22116
22116
|
|
|
22117
|
-
me = list = tree = actionMenu = search = forceNewSearch = hideLinesForFlatData = dataRequested = dataLoading /*= nodesPopulated*/ = requestCount = onDataLoadedCallback = suppressTreeOnOpen = timeOut = currentRequest = classes = autoUpdatedSelections = useActionMenu = useActionMenuForced = useActionMenuAfterLoad = useActionMenuSortingLocale = useActionMenuHtmlAllowed = treeViewEnabled = orgPlaceholder = customPlaceholderSet = translations = onRequestHandlers = onResponseHandlers = null;
|
|
22117
|
+
me = list = tree = actionMenu = search = forceNewSearch = hideLinesForFlatData = dataRequested = dataLoading /*= nodesPopulated*/ = requestCount = onDataLoadedCallback = suppressTreeOnOpen = timeOut = currentRequest = classes = autoUpdatedSelections = useActionMenu = useActionMenuForced = useActionMenuAfterLoad = useActionMenuSortingLocale = useActionMenuHtmlAllowed = treeViewEnabled = orgPlaceholder = customPlaceholderSet = translations = onRequestHandlers = onResponseHandlers = onAbortHandlers /*= onPopulatedHandlers*/ = null;
|
|
22118
22118
|
|
|
22119
22119
|
base();
|
|
22120
22120
|
});
|
|
@@ -32832,9 +32832,9 @@ Fit.Controls.WSTreeView = function(ctlId)
|
|
|
32832
32832
|
|
|
32833
32833
|
// Preserve scroll position in case user scrolled view while data was loading. Calling node.Focused(true)
|
|
32834
32834
|
// or SetActiveNode(..) further down will not only focus or highlight node, but also scroll it into view.
|
|
32835
|
-
var scrollbars = Fit.Dom.GetScrollBars(me.GetDomElement());
|
|
32836
|
-
var scrollParent = scrollbars.Vertical.Enabled === true || scrollbars.Horizontal.Enabled === true ? me.GetDomElement() : Fit.Dom.GetScrollParent(me.GetDomElement());
|
|
32837
|
-
var scrollPositionToRestore = keepState === true ? { Top: scrollParent.scrollTop, Left: scrollParent.scrollLeft } : null;
|
|
32835
|
+
var scrollbars = Fit.Dom.GetScrollBars(me.GetDomElement()); // Scrollbars not enabled when no data is loaded to overflow own container
|
|
32836
|
+
var scrollParent = scrollbars.Vertical.Enabled === true || scrollbars.Horizontal.Enabled === true ? me.GetDomElement() : Fit.Dom.GetScrollParent(me.GetDomElement()); // Null if data is not causing local scroll and if WSTreeView is not mounted in another scrollable container (likely within a parent with position:fixed)
|
|
32837
|
+
var scrollPositionToRestore = scrollParent !== null && keepState === true ? { Top: scrollParent.scrollTop, Left: scrollParent.scrollLeft } : null;
|
|
32838
32838
|
|
|
32839
32839
|
// Remove nodes
|
|
32840
32840
|
me._internal.ExecuteWithNoOnChange(function()
|