+1 vote

Hi everyone, I was recently migrated to Godot 3.2 and noticed that behavior of StyleBoxTexture has changed, comparing to version 3.1. Here you can see two buttons, both use the same StyleBoxTexture, which has margins are: 10px top and bottom, 16px left and right:

enter image description here

The button on the right side looks fine, but the left one looks weird, because texture size is bigger than button rect and its margins shrink along with the whole texture.

Thanks in advance.

in Engine by (13 points)

similar problem with unintentional shrinkage?
https://github.com/godotengine/godot/issues/35005

maybe just make the texture as small as possible.... even if it is 5x5 or 10x10 it can stretch to everything?

This can work for small elements like buttons, but I also have the same problem on dialog windows, where I want to have large background pattern.

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.