Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Why do my GuiObjects keep distorting whenever I resize it whilst it is inside a ScrollingFrame?

Asked by 4 years ago

Whenever I resize anything inside a Scrolling Frame it distorts and sizes up when I size it down.

https://gyazo.com/c2c1dae60ec4f7fb19966a02769e9e4b https://gyazo.com/49f7b49de77025f5517fb385e58b8a67

What is going on? Does anyone else have this happen? Is there a fix?

1
haha how about you contribute to the post instead riceburrito16 40 — 4y
0
Ok... Serpawh -4 — 4y

2 answers

Log in to vote
1
Answered by 4 years ago
Edited by User#24403 4 years ago

You are not showing much information on your GUI. It would help us answer if you were to tell us the purpose of the GUI, but I'll give a shot to help with what you have shown.


  • Probable Explanation to Issue

Your issue may be the fact you are using a ScrollingFrame, do you actually require the ability to scroll, if not then use a Frame. Within a ScrollingFrame's properties, you should find CanvasSize or a similar property which is the total space the ScrollingFrame is using to scroll through (you cannot see all of a ScrollingFrame's area, which is why they give a scroll bar). Due to being unable to see the full space you are working with, and I assume the use of Scale to resize/position the image in your GIF, you get a size or position change you don't expect.


  • Actual answer

What you can try is adjusting using only the properties of the GUI or see if a Frame works the same for what you are trying to accomplish. If you put the image below the visible area of the ScrollingFrame, it will be possible to scroll to the image, so it isn't gone but out of sight. Hopefully this helps, you can comment questions or update your answer to provide extra information.

Ad
Log in to vote
0
Answered by
Serpawh -4
4 years ago

How about you set the Size through a script (text-based interface) rather than the graphical resizer you're messing with.

SF = ScrollingFramePath

SF.Size = Vector2.new(x,y)

-- Have Fun!
0
The graphical resizer is a Roblox feature. Most likely the issue is the size of the scrolling frame and a possible use of the Scale portion of size/position alphawolvess 1784 — 4y

Answer this question