Skip to content

Commit

Permalink
Merge pull request #1978 from Krypton-Suite/1977-alpha-Control-Anchor
Browse files Browse the repository at this point in the history
- Make sure Panel is sized to the Form before allowing controls to be…
  • Loading branch information
giduac authored Dec 19, 2024
2 parents 9d772fb + c7201bf commit 9fbb447
Show file tree
Hide file tree
Showing 8 changed files with 33 additions and 35 deletions.
3 changes: 2 additions & 1 deletion Documents/Changelog/Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
=======

## 2025-11-xx - Build 2511 - November 2025
* Resolved [#1977](https://github.com/Krypton-Suite/Standard-Toolkit/issues/1977), When a control is set to anchor to the bottom, the control can be stretched beyond the form bottom.
* Resolved [#1964](https://github.com/Krypton-Suite/Standard-Toolkit/issues/1964), `KryptonTreeView` Node crosses are not Dpi Scaled
* Implemented [#1968](https://github.com/Krypton-Suite/Standard-Toolkit/issues/1968), Open up 'ExceptionHandler' for public use
- To invoke, use `KryptonExceptionHandler`
Expand All @@ -22,7 +23,7 @@
* Resolved [#980](https://github.com/Krypton-Suite/Standard-Toolkit/issues/980), `KryptonDockableNavigator` with pages without `AllowConfigSave` flag are incorrectly saved
* Resolved [#1909](https://github.com/Krypton-Suite/Standard-Toolkit/issues/1909), `KryptonDataGridViewComboBoxCell` displays an empty drop-down list on the first new row.
* Resolved [#1910](https://github.com/Krypton-Suite/Standard-Toolkit/issues/1910), `Workspace Persistence` -> "Save to array" Causes an exception in `Toolkit.XmlHelper.Image.Save`
* Implemented [#1177](https://github.com/Krypton-Suite/Standard-Toolkit/issues/1177), Is it possible to have the KForm back colour as the KPanel colour
* Implemented [#1117](https://github.com/Krypton-Suite/Standard-Toolkit/issues/1117), Is it possible to have the KForm back colour as the KPanel colour
* Resolved [#1900](https://github.com/Krypton-Suite/Standard-Toolkit/issues/1900), Remove Obsolete `KryptonMessageBoxDep` from V100 code base
* Resolved [#1211](https://github.com/Krypton-Suite/Standard-Toolkit/issues/1211), Button 'drop down' arrows should use palette text colour
* Resolved [#1212](https://github.com/Krypton-Suite/Standard-Toolkit/issues/1212), **[Breaking Change]** `KColorButton` 'drop-down' arrow should be drawn
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,6 @@ public string Text
[KryptonPersist]
[Category(@"Appearance")]
[Description(@"Check box extra text.")]
[DefaultValue(null)]
[Localizable(true)]
[AllowNull]
public string ExtraText
Expand All @@ -223,6 +222,8 @@ public string ExtraText
}
}

private bool ShouldSerializeExtraText() => !string.IsNullOrEmpty(_extraText);

/// <summary>
/// Gets and sets the check box image.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,6 @@ public string Text
[Description(@"Heading menu item extra text.")]
[Editor(typeof(MultilineStringEditor), typeof(UITypeEditor))]
[Localizable(true)]
[DefaultValue("")]
[AllowNull]
public string ExtraText
{
Expand All @@ -180,6 +179,7 @@ public string ExtraText
}
}
}
private bool ShouldSerializeExtraText() => !string.IsNullOrEmpty(_extraText);

/// <summary>
/// Gets and sets the heading menu item image.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,6 @@ public string Text
[Category(@"Appearance")]
[Description(@"Standard menu item extra text.")]
[Editor(typeof(MultilineStringEditor), typeof(UITypeEditor))]
[DefaultValue(@"")]
[Localizable(true)]
[Bindable(true)]
public string ExtraText
Expand All @@ -269,6 +268,7 @@ public string ExtraText
}
}
}
private bool ShouldSerializeExtraText() => !string.IsNullOrEmpty(_extraText);

/// <summary>
/// Gets and sets the standard menu item image.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,6 @@ public string Text
[KryptonPersist]
[Category(@"Appearance")]
[Description(@"Link label extra text.")]
[DefaultValue(null)]
[Localizable(true)]
public string? ExtraText
{
Expand All @@ -276,6 +275,7 @@ public string? ExtraText
}
}
}
private bool ShouldSerializeExtraText() => !string.IsNullOrEmpty(_extraText);

/// <summary>
/// Gets and sets the link label image.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,6 @@ public string Text
[KryptonPersist]
[Category(@"Appearance")]
[Description(@"Radio button extra text.")]
[DefaultValue(null)]
[Localizable(true)]
public string? ExtraText
{
Expand All @@ -209,6 +208,7 @@ public string? ExtraText
}
}
}
private bool ShouldSerializeExtraText() => !string.IsNullOrEmpty(_extraText);

/// <summary>
/// Gets and sets the radio button image.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -439,6 +439,10 @@ public void SetInheritedControlOverride()
{
get
{
if (_internalKryptonPanel.Controls.Count == 0)
{
_internalKryptonPanel.ClientSize = ClientSize;
}
// Deal with adding after the `InitializeComponent` has completed
return _foundRibbonOffset == -1
? _internalKryptonPanel.Controls
Expand Down
50 changes: 21 additions & 29 deletions Source/Krypton Components/TestForm/DataGridViewTest.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 9fbb447

Please sign in to comment.