Skip to content

Commit fe3e667

Browse files
committed
fix(jsdoc): updated jsdocs adding the requestanimationframe
1 parent 616f68b commit fe3e667

File tree

3 files changed

+5
-99
lines changed

3 files changed

+5
-99
lines changed

packages/utilities/src/utilities/sameHeight/sameheight.js

-49
This file was deleted.

packages/utilities/src/utilities/sameHeight/sameHeight.js packages/utilities/src/utilities/sameheight/sameHeight.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,11 @@ import { baseFontSize, breakpoints } from '@carbon/layout';
1616
* sameheight(ElementArray, 'md');
1717
*
1818
* if you want the utility to refresh the sizes as you resize the screen, consider using a listener:
19-
* window.addEventListener('resize', sameheight(ElementArray, 'md'));
19+
* window.addEventListener('resize', function() {
20+
* window.requestAnimationFrame(function() {
21+
* sameheight(ElementArray, 'md');
22+
* });
23+
* }, true);
2024
*
2125
* @param {Array} elemCollection Html objects array
2226
* @param {string} minSize Minimum size for the utility to be activated, empty for small,

packages/utilities/src/utilities/sameheight/sameheight.js

-49
This file was deleted.

0 commit comments

Comments
 (0)