If I want to automatically size a list based on its items I can do that.
Now if I want to add some decoration that scales with the list, perhaps an image design that extends 40 pixels in each direction, I can’t do that. Because the list will change size to try to fit it.
So there should be a toggle on a gui that makes it not affect the parent’s automatic size.
I wanted to add a drop shadow effect, or outline (not UIStroke though) to my tooltip frame that appears when hovering over stuff for more information on Computer, but decided not to do it because of the added effort I’d have to go through for something like this, which is a tradeoff when it would be nice if this could be included in the engine itself.
Maybe instead, we can have a property which allows one GuiObject to scale based off of another GuiObject, without being in it? So it wouldn’t be affected as a child, but it’ll still scale independently based off of it. Not too sure how well this could work though?
We currently need to abandon AutomaticSize or use cursed UIPadding hacks to make this work. A property to make a GUI object ignored by the parent’s automatic sizing would be amazing!
Bump. Adding an image overlay over a frame with AutomaticSize is impossible, since if you set the image’s size to (1, 0, 1, 0), it will break the AutomaticSize of the frame.
Seems like there hasn’t been an update on this yet so I’m going to bump it. This would be incredibly helpful to have though I would suggest it would be something you indicate on the child element itself (like an automatic size “opt out”) as otherwise there wouldn’t be a clean way of implementing it for more than one child element if the parent uses automatic sizing.
Recently ran into a problem that this could solve. Background image is larger than frame, but culled. Automatic Size screws it over by accounting for the culled regions of the background image, significantly oversizing the frame. There needs to be some sort of filter for Automatic Size.
I have a dropdown component but I am forced to complicate it by pulling the item holder up to the LayerCollector and calculating its position manually to avoid resizing container. If I could just disable automatic size for the dropdown, I wouldn’t have to do all of this.