Skip to content
This repository was archived by the owner on Sep 6, 2021. It is now read-only.

Commit 4e77b34

Browse files
committed
do not calculate size with hidden elements when resizing
1 parent 6cdd1de commit 4e77b34

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/utils/Resizer.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ define(function (require, exports, module) {
270270
$body.append($resizeShield);
271271

272272
if ($resizableElement.length) {
273-
$element.children().not(".horz-resizer, .vert-resizer, .resizable-content").each(function (index, child) {
273+
$element.children(":visible").not(".horz-resizer, .vert-resizer, .resizable-content").each(function (index, child) {
274274
if (direction === DIRECTION_HORIZONTAL) {
275275
baseSize += $(child).outerWidth();
276276
} else {
@@ -476,4 +476,4 @@ define(function (require, exports, module) {
476476
exports.DIRECTION_HORIZONTAL = DIRECTION_HORIZONTAL;
477477
exports.POSITION_TOP = POSITION_TOP;
478478
exports.POSITION_RIGHT = POSITION_RIGHT;
479-
});
479+
});

0 commit comments

Comments
 (0)