Skip to content

Commit cf5afec

Browse files
authored
Increase border_rect for TextureSlicer to match image (#15177)
# Objective - Fixes #14550 ## Solution Increased the _border_rect_ for _TextureSampler_ to match image. ## Testing - Compiled main branch from source and made sure problem exists - Applied fix and rebuild to make sure problem doesn't exist anymore ## Showcase ### main After some clicking on the buttons problem exists on main branch: ![image](https://github.com/user-attachments/assets/29636390-f33d-495d-8068-e652c20c12f3) ### this PR Can not get the problem with the fix: ![image](https://github.com/user-attachments/assets/b891f188-e025-49c0-8523-7a98cb784b19)
1 parent 3efef59 commit cf5afec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/ui/ui_texture_atlas_slice.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ fn setup(
5555
let atlas_layout_handle = texture_atlases.add(atlas_layout);
5656

5757
let slicer = TextureSlicer {
58-
border: BorderRect::square(22.0),
58+
border: BorderRect::square(24.0),
5959
center_scale_mode: SliceScaleMode::Stretch,
6060
sides_scale_mode: SliceScaleMode::Stretch,
6161
max_corner_scale: 1.0,

0 commit comments

Comments
 (0)