Fixed Docked resizing + added docking restrictor#177
Conversation
Translate comments to English
@yagarifullin you also need to add that new option in the documentation in |
|
Sorry, I don't have access to edit the wiki. The idea for this feature came up when I realized that controls laid out vertically don't automatically rearrange into a horizontal layout when docked to Bottom. So I added this option to keep vertically arranged windows vertical everywhere. But it works for other sides as well. DisableDocks is a list of dock types to disable for a specific window. Valid values are 'Left', 'Right', 'Bottom'. When set, the dock overlay for the specified sides will not appear while dragging that window. Example: DisableDocks = {'Bottom'} Slab.BeginWindow("MyWindow", { |
Thank you for the explanations! I'll merge it once the changes in API.lua has been made |
Fix docked window resize behavior and add per-window dock restrictions
calling AlterOptions for tethered windows and resetting position
deltas when resize ends
(e.g., DisableDocks = {'Bottom'} prevents docking to bottom edge)