File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -210,6 +210,8 @@ where
210
210
return Node :: new ( Size :: ZERO ) ;
211
211
}
212
212
213
+ let limits = limits. width ( self . width ( ) ) . height ( self . height ( ) ) ;
214
+
213
215
// Calculate the column widths and row heights to fit the contents
214
216
let mut min_columns_widths = Vec :: < f32 > :: with_capacity ( self . column_count ( ) ) ;
215
217
let mut min_row_heights = Vec :: < f32 > :: with_capacity ( self . row_count ( ) ) ;
@@ -219,7 +221,7 @@ where
219
221
let mut row_height = 0.0f32 ;
220
222
221
223
for ( col_idx, element) in row. elements . iter ( ) . enumerate ( ) {
222
- let layout = element. as_widget ( ) . layout ( renderer, limits) ;
224
+ let layout = element. as_widget ( ) . layout ( renderer, & limits) ;
223
225
let Size { width, height } = layout. size ( ) ;
224
226
225
227
#[ allow( clippy:: option_if_let_else) ]
@@ -253,7 +255,7 @@ where
253
255
} ;
254
256
let cell_size = Size :: new ( col_width, row_height) ;
255
257
256
- let mut node = element. as_widget ( ) . layout ( renderer, limits) ;
258
+ let mut node = element. as_widget ( ) . layout ( renderer, & limits) ;
257
259
node. move_to ( Point :: new ( x, y) ) ;
258
260
node. align (
259
261
self . horizontal_alignment . into ( ) ,
You can’t perform that action at this time.
0 commit comments