mirror of
https://github.com/chylex/TweetDuck.git
synced 2025-04-17 21:15:47 +02:00
Work around broken bottom anchor in PluginControl
This commit is contained in:
parent
a1b4c31450
commit
35c2ee3673
@ -40,6 +40,12 @@ public PluginControl(PluginManager pluginManager, Plugin plugin) : this() {
|
|||||||
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 @@ public PluginControl(PluginManager pluginManager, Plugin plugin) : this() {
|
|||||||
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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user