Help with GUI - stretch scroll-pane

Place to get help with not working mods / modding interface.
Post Reply
User avatar
yaim904
Long Handed Inserter
Long Handed Inserter
Posts: 86
Joined: Wed Nov 17, 2021 11:26 pm
Contact:

Help with GUI - stretch scroll-pane

Post by yaim904 »

I want to stretch the scroll-pane pointed in the image as 1.
I want it to occupy all the available space, the space is marked as 2.
(11).png
(11).png (8.25 KiB) Viewed 673 times

Attached additional images for more detail of the situation.
Attachments
(20).png
(20).png (65.29 KiB) Viewed 673 times
(30).png
(30).png (143.65 KiB) Viewed 673 times
(40).png
(40).png (54.39 KiB) Viewed 673 times
Solo entiendo español, pero si tu también lo entiendes, escríbeme
:D
Everything i write in English is translated by google.
:D

User avatar
yaim904
Long Handed Inserter
Long Handed Inserter
Posts: 86
Joined: Wed Nov 17, 2021 11:26 pm
Contact:

Re: Help with GUI - stretch scroll-pane

Post by yaim904 »

I tried to fix it on my own, but I made it worse.

I need someone to explain to me how the property vertically_stretchable works and what I am doing wrong.

Code: Select all

Element.style.vertically_stretchable = true
Attachments
10.png
10.png (44.02 KiB) Viewed 629 times
20.png
20.png (58.97 KiB) Viewed 629 times
30.png
30.png (50.58 KiB) Viewed 629 times
40.png
40.png (127.05 KiB) Viewed 629 times
50.png
50.png (43.59 KiB) Viewed 629 times
Solo entiendo español, pero si tu también lo entiendes, escríbeme
:D
Everything i write in English is translated by google.
:D

User avatar
yaim904
Long Handed Inserter
Long Handed Inserter
Posts: 86
Joined: Wed Nov 17, 2021 11:26 pm
Contact:

Re: Help with GUI - stretch scroll-pane

Post by yaim904 »

I get it.

This option does not always work as it is supposed to do.

Code: Select all

Element.style.vertically_stretchable = true
I had to give specific heights to many of the elements, which affects it when I change the scale.
Solo entiendo español, pero si tu también lo entiendes, escríbeme
:D
Everything i write in English is translated by google.
:D

Post Reply

Return to “Modding help”