Skip to content

Commit

Permalink
[#1327] Grid > 가로 스크롤이 생기는 이슈 (#1328)
Browse files Browse the repository at this point in the history
Co-authored-by: yell <yell@ex-em.com>
  • Loading branch information
kimyell and kimyell1023 authored Dec 15, 2022
1 parent 18c08d7 commit 14896fa
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/components/grid/uses.js
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,6 @@ export const resizeEvent = (params) => {
if (resizeInfo.adjust) {
const bodyEl = elementInfo.body;
let elWidth = bodyEl.offsetWidth;
const elHeight = bodyEl.offsetHeight;
const result = stores.orderedColumns.reduce((acc, cur) => {
if (cur.hide) {
return acc;
Expand All @@ -193,9 +192,7 @@ export const resizeEvent = (params) => {
return acc;
}, { totalWidth: 0, emptyCount: 0 });

if (resizeInfo.rowHeight * props.rows.length > elHeight) {
elWidth -= resizeInfo.scrollWidth;
}
elWidth -= resizeInfo.scrollWidth;

if (checkInfo.useCheckbox.use) {
elWidth -= resizeInfo.minWidth;
Expand Down

0 comments on commit 14896fa

Please sign in to comment.