@@ -261,24 +261,31 @@ export class MasonryGrid extends Grid<MasonryGridOptions> {
261261 // 배치가 조금 더 수월하기 위해서는 min, max scaling 1차 작업
262262 let minStretchSize = 0 ;
263263 let maxStretchSize = Infinity ;
264+ let useStretchItemSize = false ;
264265
265266 if ( isString ( stretchItemSize [ 0 ] ) ) {
266267 const [ inline , content ] = stretchItemSize [ 0 ] . split ( ":" ) . map ( ( value ) => parseFloat ( value ) ) ;
267268
268269 minStretchSize = item . computedInlineSize * content / inline ;
270+ useStretchItemSize = true ;
269271 } else if ( stretchItemSize [ 0 ] ) {
270272 minStretchSize = stretchItemSize [ 0 ] ;
273+ useStretchItemSize = true ;
271274 }
272275 if ( isString ( stretchItemSize [ 1 ] ) ) {
273276 const [ inline , content ] = stretchItemSize [ 1 ] . split ( ":" ) . map ( ( value ) => parseFloat ( value ) ) ;
274277
275278 maxStretchSize = item . computedInlineSize * content / inline ;
279+ useStretchItemSize = true ;
276280 } else if ( stretchItemSize [ 1 ] ) {
277281 maxStretchSize = stretchItemSize [ 1 ] ;
282+ useStretchItemSize = true ;
278283 }
279284 const nextContentSize = between ( contentSize , minStretchSize , maxStretchSize ) ;
280285
281- if ( nextContentSize !== contentSize ) {
286+
287+ // stretchItemSize를 사용한 케이스라면 반영
288+ if ( useStretchItemSize ) {
282289 contentSize = nextContentSize ;
283290 item . cssContentSize = contentSize ;
284291 useComputedSize = true ;
0 commit comments