bevyengine / bevyengine/bevy

Thin Lines between grids in grid display (bevy UI)

Open
#17,319 2 comments 1 reaction 0 assignees View on GitHub
A-UI C-Bug S-Needs-Investigation
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.

![Image](https://github.com/user-attachments/assets/fe993992-77d5-4ac4-bcf7-16b058183a21)

![Image](https://github.com/user-attachments/assets/d2378e26-db5f-425d-b7bb-b029ccde66e5)

Contributor guide

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.