Search found 3 matches

by Gogbayls
Mon Aug 17, 2020 9:01 am
Forum: Support and Development
Topic: Scaling elements without stretch ?
Replies: 5
Views: 2885

Re: How to scaling children elements without stretch ?

I tested your version, but it has position problems and with changing size. Problems : https://files.catbox.moe/f3271r.mp4 What do you mean by context? Exactly that. You haven't mentioned how you want to deal with the issues inherent to scaling. And you haven't given enough code to allow us to run ...
by Gogbayls
Sun Aug 16, 2020 3:13 pm
Forum: Support and Development
Topic: Scaling elements without stretch ?
Replies: 5
Views: 2885

Re: How to scaling children elements without stretch ?

pgimeno wrote: Sun Aug 16, 2020 12:39 am There are some ways to preserve the aspect ratio, but I don't think we have enough context.
I tested your version, but it has position problems and with changing size.
Problems :https://files.catbox.moe/f3271r.mp4
What do you mean by context?
by Gogbayls
Fri Aug 14, 2020 1:25 pm
Forum: Support and Development
Topic: Scaling elements without stretch ?
Replies: 5
Views: 2885

Scaling elements without stretch ?

I found the code for scaling elements by window size and convert him to lua but i have a problem with scaling rectangles, they stretch when the window is resized but i want save original form. How to fix this problem ? My code: local objects = { {x = g_x + 0, y = g_y, w = 50, h = 50}, {x = g_x + 55,...