Thin Lines between grids in grid display (bevy UI)
- Dominant language
- Rust
- Stars
- 48.2k
- Forks
- 4.8k
- Avg merge
- 3d 16h
- Merged PRs (30d)
- 171
Description
## Bevy version
0.15.1
## \[Optional\] Relevant system information
```ignore
`AdapterInfo { name: "NVIDIA GeForce RTX 4080", vendor: 4318, device: 9988, device_type: DiscreteGpu, driver: "NVIDIA", driver_info: "560.94", backend: Vulkan }`
```
## What you did
```rust
commands.spawn(Node {
width: Val::Percent(100.),
height: Val::Percent(100.),
position_type: PositionType::Absolute,
justify_content: JustifyContent::Center,
align_items: AlignItems::Center,
..default()
}).with_children(|parent| {
parent.spawn(
Node {
display: Display::Grid,
width: Val::Percent(50.),
height: Val::Percent(50.),
grid_template_rows: RepeatedGridTrack::flex(3, 1.0),
grid_template_columns: RepeatedGridTrack::flex(3, 1.0),
..default()
}
).with_children(|parent| {
for _ in 0..3 {
for _ in 0..3 {
parent.spawn((
Node::default(),
BackgroundColor::from(Color::WHITE),
));
}
}
});
});
```
## What went wrong
Thin lines seem to appear between the grid cells in the Grid Display Layout when I resize the window.


Contributor guide
Research direction
Start by running the supplied Rust example on Bevy 0.15.1 and resize the window to reproduce the lines between the 3×3 grid cells. Trace the Bevy UI grid layout and rendering behavior involved in that example. Done means the white grid cells remain visually continuous without thin lines while resizing.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- game-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100