@itwin/itwinui-react 1.40.0 → 1.40.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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ### [1.40.1](https://www.github.com/iTwin/iTwinUI-react/compare/v1.40.0...v1.40.1) (2022-06-17)
4
+
5
+ ### Fixes
6
+
7
+ * **Table:** Horizontal scroll is working when virtual scroll is enabled ([#711](https://www.github.com/iTwin/iTwinUI-react/issues/711)) ([d3db504](https://www.github.com/iTwin/iTwinUI-react/commit/d3db504d3a44a4da2c1f34a392f99aae478ef2a3))
8
+
3
9
  ## [1.40.0](https://www.github.com/iTwin/iTwinUI-react/compare/v1.39.0...v1.40.0) (2022-06-10)
4
10
 
5
11
  ### What's new
@@ -291,11 +291,11 @@ var useVirtualization = function (props) {
291
291
  updateVirtualScroll();
292
292
  }, [scrollContainerHeight, updateVirtualScroll]);
293
293
  return {
294
- outerProps: __assign({ style: __assign({ overflow: 'hidden', minHeight: itemsLength > 1
294
+ outerProps: __assign({ style: __assign({ minHeight: itemsLength > 1
295
295
  ? Math.max(itemsLength - 2, 0) * childHeight.current.middle +
296
296
  childHeight.current.first +
297
297
  childHeight.current.last
298
- : childHeight.current.middle, width: '100%' }, style) }, rest),
298
+ : childHeight.current.middle, minWidth: '100%' }, style) }, rest),
299
299
  innerProps: {
300
300
  style: { willChange: 'transform' },
301
301
  ref: (0, hooks_1.mergeRefs)(parentRef), // convert object ref to callback ref for better types
@@ -285,11 +285,11 @@ export var useVirtualization = function (props) {
285
285
  updateVirtualScroll();
286
286
  }, [scrollContainerHeight, updateVirtualScroll]);
287
287
  return {
288
- outerProps: __assign({ style: __assign({ overflow: 'hidden', minHeight: itemsLength > 1
288
+ outerProps: __assign({ style: __assign({ minHeight: itemsLength > 1
289
289
  ? Math.max(itemsLength - 2, 0) * childHeight.current.middle +
290
290
  childHeight.current.first +
291
291
  childHeight.current.last
292
- : childHeight.current.middle, width: '100%' }, style) }, rest),
292
+ : childHeight.current.middle, minWidth: '100%' }, style) }, rest),
293
293
  innerProps: {
294
294
  style: { willChange: 'transform' },
295
295
  ref: mergeRefs(parentRef), // convert object ref to callback ref for better types
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itwin/itwinui-react",
3
- "version": "1.40.0",
3
+ "version": "1.40.1",
4
4
  "author": "Bentley Systems",
5
5
  "license": "MIT",
6
6
  "main": "cjs/index.js",