RobinPerris / DarkUI

Dark themed control and docking library for .NET WinForms.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Right Splitter can move over Left Splitter

LuckyTeng opened this issue · comments

commented

#It happens when we move right splitter over the left splitter boundary, we should restrict it, otherwise it will have a strange display as below pic.

image

commented

Sizing restrictions are one of the big features missing from DarkUI.

The minimum and maximum bounds of the panels should be calculated, stored, and checked against when moving the resize splitters to ensure that users cannot break the areas like you've shown.

As I'm not using this library in any of my own projects, I'm not going to be able to find time to write the code to handle this.

If anyone wants to pick this up as a pull request I'd be happy to merge it in.

commented

Check out our DarkUI branch here: https://github.com/ActuallyaDeviloper/DarkUI
We are using this branch for our really complicated level editor project and have solved most of sizing and limiting issues in this branch.

@Lwmte Maybe send a PR ? Would be nice to have a single reference for this project, and you made quite a lot of improvements as far as I can see.

commented

@Lwmte It's fantastic how far you've taken the project in your fork. Really great to see how much use you're getting out of it.

It does, however, make it difficult for me to pin-point exactly what the fix for this issue is. Would you be able to link to the lines which fix this problem directly so I can implement it?

commented

Closing due to inactivity. Anyone who wants to PR this feel free.