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

[Bug]: KryptonDockingManager - KryptonPage - MinimumSize not working #452

Closed
raygraham442 opened this issue Oct 26, 2021 · 7 comments
Closed
Labels
bug Something isn't working completed This issue has been completed.
Milestone

Comments

@raygraham442
Copy link

I've created a KryptonPage that has an attached UserControl. I want to configure the page so that it can't be resized smaller than 682 x 533. I'm setting the MinimumSize to 682 x 533. Though as I move and pages around in the WorkSpace I find that the KryptonPage set the MinimumSize on can be resized smaller than the MinumumSize of 682 x 533. Is there something more that I need to configure for the MinimumSize to work?

Thanks in advance,

@PWagner1 PWagner1 changed the title KryptonDockingManager - KryptonPage - MinimumSize not working [Bug]: KryptonDockingManager - KryptonPage - MinimumSize not working Oct 27, 2021
@PWagner1 PWagner1 added the bug Something isn't working label Oct 27, 2021
@PWagner1
Copy link
Contributor

That's odd, just checked and the minimum size for a KryptonPage is 50 x 50. Any ideas @Smurf-IV?

@Smurf-IV
Copy link
Member

Have not "Played" with the Docking code, I think it might be overriding the page size (i.e. ignoring it !),
Or the control is set to a minimum, and the page is not.
Can this be replicated in an example modification ?

@Smurf-IV
Copy link
Member

Smurf-IV commented Nov 14, 2021

This might have been fixed with the code changes in #459.
@raygraham442 Please retest with a nightly from today 👍 (i.e. greater than 316)

@Smurf-IV Smurf-IV added the help wanted Extra attention is needed label Nov 14, 2021
@Smurf-IV
Copy link
Member

This might have been fixed with the code changes in #459. @raygraham442 Please retest with a nightly from today 👍 (i.e. greater than 316)

No it has not been fixed.

It appears that there are several issues here:

  • KryptonDockspace doe snot have it's MinimumSize set to the pages it's contains minimum size.
  • KryptonPage doe snot respect the MinimumSize of any controls it contains when it is not docked (If at all !)
  • Sizing in docking does not appear to work as expected when the docking is moved around on different edges.

@Smurf-IV Smurf-IV self-assigned this Dec 19, 2021
@Smurf-IV Smurf-IV added under investigation This bug/issue is currently under investigation. and removed help wanted Extra attention is needed labels Dec 19, 2021
@Smurf-IV
Copy link
Member

Arggh.. I don't like this Docking code ....

@Smurf-IV
Copy link
Member

Massive cleanup has been triggered to try and "see the wood for the trees"
#542

@Smurf-IV
Copy link
Member

The following video shows:

  • Designer with Min Size set to the area shown
  • Multi Control Demo App initial start showing the overlapping controls obeying the minimum Size
  • Floating window showing minimum size to show
  • Attempt to make the Docked control smaller
  • Maximise app, then resize still works

DEsignerControlHasMinSizeSet

Smurf-IV added a commit to Krypton-Suite/Standard-Toolkit-Demos that referenced this issue Dec 24, 2021
Smurf-IV added a commit that referenced this issue Dec 24, 2021
- Make usre "Special strings" are marked with a `@`
- Make sure `ArgumentException` has the actual "Argument" that is causing the "Exception"
- Apply `linq` over `foreach` condition statements
- Fix some spelling mistakes
- Apply constructor should be `protected` for abstract classes
Fixes: #452
@Smurf-IV Smurf-IV removed their assignment Dec 24, 2021
@Smurf-IV Smurf-IV added completed This issue has been completed. and removed under investigation This bug/issue is currently under investigation. labels Dec 24, 2021
@Smurf-IV Smurf-IV added this to the January 2022 milestone Dec 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working completed This issue has been completed.
Projects
None yet
Development

No branches or pull requests

3 participants