efront 3.12.1 → 3.12.2
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/coms/zimoli/data.js +2 -1
- package/coms/zimoli/list.js +1 -2
- package/package.json +1 -1
- package/public/efront.js +1 -1
package/coms/zimoli/data.js
CHANGED
|
@@ -927,6 +927,7 @@ var data = {
|
|
|
927
927
|
setSource(sourceid, value) {
|
|
928
928
|
var rememberWithStorage;
|
|
929
929
|
if (isObject(sourceid)) {
|
|
930
|
+
|
|
930
931
|
this.rebuildInstance(dataSourceMap, sourceid);
|
|
931
932
|
rememberWithStorage = value;
|
|
932
933
|
} else {
|
|
@@ -975,7 +976,7 @@ var data = {
|
|
|
975
976
|
if (key === true || key === false || isEmpty(key)) {
|
|
976
977
|
rememberWithStorage = key;
|
|
977
978
|
key = null;
|
|
978
|
-
var value = instance;
|
|
979
|
+
var value = instance.valueOf();
|
|
979
980
|
} else {
|
|
980
981
|
var value = instance[key];
|
|
981
982
|
}
|
package/coms/zimoli/list.js
CHANGED
|
@@ -107,7 +107,6 @@ function ylist(container, generator, $Y) {
|
|
|
107
107
|
return map;
|
|
108
108
|
};
|
|
109
109
|
var createItem = function (index) {
|
|
110
|
-
console.log(index)
|
|
111
110
|
var item = generator(index);
|
|
112
111
|
if (item) {
|
|
113
112
|
item.index = index;
|
|
@@ -402,7 +401,7 @@ function ylist(container, generator, $Y) {
|
|
|
402
401
|
var firstElement = getFirstVisibleElement();
|
|
403
402
|
if (!firstElement) return saved_itemIndex;
|
|
404
403
|
var index = firstElement.index;
|
|
405
|
-
var scrolled = (list.scrollTop - firstElement.offsetTop + parseFloat(getComputedStyle(list).paddingTop)) / firstElement.offsetHeight;
|
|
404
|
+
var scrolled = (list.scrollTop - firstElement.offsetTop + parseFloat(getComputedStyle(list).paddingTop) + .5 | 0) / firstElement.offsetHeight;
|
|
406
405
|
return index + scrolled;
|
|
407
406
|
};
|
|
408
407
|
on("remove")(list, function () {
|