Hey,
when you have the GuiElement Switch, with Captions left/right and then something besides that inside a flow and then resize your Window this happens:
Same goes with applying a width to the Frame its in:
Greetz,
Luzifer
[17.69] GuiElement Switch
- LuziferSenpai
- Filter Inserter
- Posts: 339
- Joined: Tue Jul 08, 2014 10:06 am
- Contact:
Re: [17.69] GuiElement Switch
Can you provide a code snippet/console command that will create a GUI showing the issue
- LuziferSenpai
- Filter Inserter
- Posts: 339
- Joined: Tue Jul 08, 2014 10:06 am
- Contact:
Re: [17.69] GuiElement Switch
For the first Screenshot:
Okay, its the same Problem, so when resizing.
Code: Select all
/c
local frame = game.players[1].gui.screen.add{ type = "frame", name = "TEST01", direction = "vertical", style = "dialog_frame" }
local flow = frame.add{ type = "flow", name = "TEST02", direction = "horizontal" }
local switch = flow.add{ type = "switch", name = "TEST03", switch_state = "right", left_label_caption = "On", right_label_caption = "Off" }
local button = flow.add{ type = "button", name = "TEST04", caption = "I" }
frame.auto_center = true
frame.style.width = 100
Re: [17.69] GuiElement Switch
Well, I guess the widget isn't squashable, so don't try to fit it into too narrow a space
I am going to move this to minor issues, as it is trivial to avoid
I am going to move this to minor issues, as it is trivial to avoid