mirror of
https://github.com/chylex/TweetDuck.git
synced 2025-08-18 22:24:53 +02:00
Work around broken bottom anchor in PluginControl
This commit is contained in:
@@ -40,6 +40,12 @@ namespace TweetDuck.Plugins {
|
|||||||
this.labelWebsite.Text = plugin.Website;
|
this.labelWebsite.Text = plugin.Website;
|
||||||
this.labelVersion.Text = plugin.Version;
|
this.labelVersion.Text = plugin.Version;
|
||||||
|
|
||||||
|
// Bottom anchor seems to be broken, so the height of the label and border is set manually.
|
||||||
|
this.labelType.Anchor = AnchorStyles.Left | AnchorStyles.Top;
|
||||||
|
this.panelBorder.Anchor = AnchorStyles.Left | AnchorStyles.Top;
|
||||||
|
this.labelType.Height = Height;
|
||||||
|
this.panelBorder.Height = Height;
|
||||||
|
|
||||||
this.labelType.LineHeight = BrowserUtils.Scale(11, dpiScale);
|
this.labelType.LineHeight = BrowserUtils.Scale(11, dpiScale);
|
||||||
|
|
||||||
UpdatePluginState();
|
UpdatePluginState();
|
||||||
@@ -54,6 +60,8 @@ namespace TweetDuck.Plugins {
|
|||||||
private void timerLayout_Tick(object? sender, EventArgs e) {
|
private void timerLayout_Tick(object? sender, EventArgs e) {
|
||||||
timerLayout.Stop();
|
timerLayout.Stop();
|
||||||
Height = nextHeight;
|
Height = nextHeight;
|
||||||
|
labelType.Height = nextHeight;
|
||||||
|
panelBorder.Height = nextHeight;
|
||||||
ResumeLayout();
|
ResumeLayout();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user