Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix SplitContainer.MinDraggableWidth not working with mouse-blocking children. #4439

Merged
merged 1 commit into from
Oct 8, 2023

Conversation

ElectroJr
Copy link
Member

@ElectroJr ElectroJr commented Sep 21, 2023

Requires space-wizards/space-station-14/pull/20383

This PR reworks how the SplitContainer dragging/resizing interaction works. The main issue with the current implementation is that if the container has children that filter mouse interactions, these interactions prevent the container from being resized as the container is "under" the child. This PR fixes that by making the draggable area a separate control that is placed above the other children.

E.g., on current master if you set the MinDraggableWidth of the split ui layout to 60, the actual draggable area is still tiny, only a few pixels wide:

Content.Client_W8W2CAHNCq.mp4

This is how it works if you make that change with this PR.

Content.Client_DzvHngb9dM.mp4

@ElectroJr ElectroJr added the Status: Requires Content PR This PR breaks content and requires both to be merged together. label Sep 21, 2023
@ElectroJr ElectroJr merged commit 82aace7 into space-wizards:master Oct 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Requires Content PR This PR breaks content and requires both to be merged together.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant