Texture buttons don't scale along with screensize, instead go out of bounds

Godot Version

v4.2.1.stable.official [b09f793f5]

Question

Hi all,

I’m trying to create a grid of cards using a GridContainer (with columns set to 13).
Inside are TextureButtons with stretch set to “scale”.
However, they go out of bounds as you can see in the top half of the screenshot
I tried to set ignore_texture_size to true, but this collapses al the images as shown in bottom half of the screenshot.
Any ideas as to how I might solve this issue?

Set a Control.custom_minimum_size property when enabling TextureButton.ignore_texture_size

1 Like

Alright, I see! I’ll give that a go. Thank you!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.