Hello. With scroll panes, you have the ability to define extra padding and extra margin when the scroll is active. With margin, you can specify an extra margin for each side specifically (top, left, bottom, right). However, with padding, you can only define it for all four sides at once. I would like to request that we be able to add extra padding to specific sides when active, like you can do with margin.
Thanks!
LuaGuiElement scroll-pane: extra_(direction)_padding_when_activated
LuaGuiElement scroll-pane: extra_(direction)_padding_when_activated
Don't forget, you're here forever.
Re: LuaGuiElement scroll-pane: extra_(direction)_padding_when_activated
(reposted since I actually didn't find another way...)
Bump. I am having to re-implement listboxes with a scrollpane and buttons due to limitations of that gui element. As you can see in this GIF, I have mostly managed to get the styles right, but there is a small problem:
I have tried many workarounds, but ultimately have come to the conclusion that the only way to get the behavior I want is to add side-specific extra padding when activated. That way I can just set the right padding to -12 when the scrollbar is active, and allow the buttons to stretch all the way across when it's not.
Bump. I am having to re-implement listboxes with a scrollpane and buttons due to limitations of that gui element. As you can see in this GIF, I have mostly managed to get the styles right, but there is a small problem:
I have tried many workarounds, but ultimately have come to the conclusion that the only way to get the behavior I want is to add side-specific extra padding when activated. That way I can just set the right padding to -12 when the scrollbar is active, and allow the buttons to stretch all the way across when it's not.
Don't forget, you're here forever.
Re: LuaGuiElement scroll-pane: extra_(direction)_padding_when_activated
This was added at some point.
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.