@@ -176,10 +176,10 @@ def _layout_cells(self):
176
176
cell ["content" ].anchored_position = (
177
177
int (grid_position_x * self ._width / grid_size_x )
178
178
+ self .cell_padding
179
- + (cell ["cell_anchor_point" ][0 ] * _measured_width ),
179
+ + int (cell ["cell_anchor_point" ][0 ] * _measured_width ),
180
180
int (grid_position_y * self ._height / grid_size_y )
181
181
+ self .cell_padding
182
- + (cell ["cell_anchor_point" ][1 ] * _measured_height ),
182
+ + int (cell ["cell_anchor_point" ][1 ] * _measured_height ),
183
183
)
184
184
185
185
self .append (cell ["content" ])
@@ -236,29 +236,29 @@ def _layout_cells(self):
236
236
cell ["content" ].anchored_position [1 ]
237
237
+ _measured_height
238
238
+ self .cell_padding
239
- - (cell ["cell_anchor_point" ][1 ] * _measured_height )
239
+ - int (cell ["cell_anchor_point" ][1 ] * _measured_height )
240
240
) - 1
241
241
_bottom_line_loc_x = (
242
242
cell ["content" ].anchored_position [0 ]
243
243
- self .cell_padding
244
- - (cell ["cell_anchor_point" ][0 ] * _measured_width )
244
+ - int (cell ["cell_anchor_point" ][0 ] * _measured_width )
245
245
)
246
246
247
247
_top_line_loc_y = (
248
248
cell ["content" ].anchored_position [1 ]
249
249
- self .cell_padding
250
- - (cell ["cell_anchor_point" ][1 ] * _measured_height )
250
+ - int (cell ["cell_anchor_point" ][1 ] * _measured_height )
251
251
)
252
252
_top_line_loc_x = (
253
253
cell ["content" ].anchored_position [0 ]
254
254
- self .cell_padding
255
- - (cell ["cell_anchor_point" ][0 ] * _measured_width )
255
+ - int (cell ["cell_anchor_point" ][0 ] * _measured_width )
256
256
)
257
257
258
258
_right_line_loc_y = (
259
259
cell ["content" ].anchored_position [1 ]
260
260
- self .cell_padding
261
- - (cell ["cell_anchor_point" ][1 ] * _measured_height )
261
+ - int (cell ["cell_anchor_point" ][1 ] * _measured_height )
262
262
)
263
263
_right_line_loc_x = (
264
264
(
@@ -267,7 +267,7 @@ def _layout_cells(self):
267
267
+ self .cell_padding
268
268
)
269
269
- 1
270
- - (cell ["cell_anchor_point" ][0 ] * _measured_width )
270
+ - int (cell ["cell_anchor_point" ][0 ] * _measured_width )
271
271
)
272
272
273
273
_horizontal_divider_line = displayio .Shape (
0 commit comments