@danielgindi/selectbox 1.0.143 → 1.0.144

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/lib/DropList.js CHANGED
@@ -2359,6 +2359,28 @@ class DropList {
2359
2359
 
2360
2360
  if (p.estimateWidth || p.virtualListHelper.isVirtual()) {
2361
2361
  p.virtualListHelper.createGhostItemElement(GhostSymbol, true, itemEl => {
2362
+ let measureScroll = createElement('span', {
2363
+ css: {
2364
+ display: 'block',
2365
+ width: '100px',
2366
+ height: '100px',
2367
+ overflow: 'scroll',
2368
+ position: 'absolute',
2369
+ }
2370
+ });
2371
+ let measureScrollParent = createElement('span', {
2372
+ css: {
2373
+ display: 'block',
2374
+ position: 'relative',
2375
+ width: '0',
2376
+ height: '0',
2377
+ overflow: 'hidden',
2378
+ },
2379
+ }, [measureScroll]);
2380
+ itemEl.appendChild(measureScrollParent);
2381
+ let vertScrollBarWidth = measureScroll.offsetWidth - measureScroll.clientWidth;
2382
+ itemEl.removeChild(measureScrollParent);
2383
+
2362
2384
  p.lastMeasureItemWidth = getElementWidth(itemEl, true, true);
2363
2385
  });
2364
2386
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@danielgindi/selectbox",
3
- "version": "1.0.143",
3
+ "version": "1.0.144",
4
4
  "description": "A collection of dom utilities. So you can work natively with the dom without dom frameworks.",
5
5
  "main": "dist/lib.cjs.min.js",
6
6
  "module": "lib/index.js",