Skip to content

Commit d37c497

Browse files
committed
Fixes Repititive Resizing issue cerner#1891
1 parent ac34564 commit d37c497

File tree

4 files changed

+7
-2
lines changed

4 files changed

+7
-2
lines changed

CONTRIBUTORS.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ Cerner Corporation
7878
- Jeremy Fuksa [@jeremyfuksa]
7979
- Dillon Lustick [@celvro]
8080
- Ryan Rickard [@RLRickard]
81+
- Akarsh Shetty [@ShettyAkarsh]
8182

8283
[@ryanthemanuel]: https://github.com/ryanthemanuel
8384
[@Matt-Butler]: https://github.com/Matt-Butler
@@ -158,3 +159,4 @@ Cerner Corporation
158159
[@jeremyfuksa]: https://github.com/jeremyfuksa
159160
[@celvro]: https://github.com/celvro
160161
[@RLRickard]: https://github.com/RLRickard
162+
[@ShettyAkarsh] https://github.com/ShettyAkarsh

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
"enzyme-adapter-react-16": "^1.1.1",
7474
"enzyme-to-json": "^3.2.2",
7575
"eslint": "^5.0.0",
76-
"eslint-config-terra": "^2.0.0",
76+
"eslint-config-terra": "^2.2.0",
7777
"gh-pages": "^1.1.0",
7878
"glob": "^7.1.1",
7979
"identity-obj-proxy": "^3.0.0",

packages/terra-responsive-element/CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ Changelog
44
Unreleased
55
----------
66

7+
### Fixed
8+
* Repititive Resizing when scrollbars appear between two breakpoints
9+
710
3.18.0 - (January 2, 2019)
811
------------------
912
### Changed

packages/terra-responsive-element/src/ResponsiveElement.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ class ResponsiveElement extends React.Component {
6161
this.resizeObserver = new ResizeObserver((entries) => {
6262
this.animationFrameID = window.requestAnimationFrame(() => {
6363
this.animationFrameID = null;
64-
this.handleResize(entries[0].contentRect.width);
64+
this.handleResize(entries[0].target.getBoundingClientRect().width);
6565
});
6666
});
6767
this.resizeObserver.observe(this.container);

0 commit comments

Comments
 (0)