@@ -54,12 +54,9 @@ public void Reload()
5454 lblHelpTitle . Text = "Press on \" Add Taskbar group\" to get started" ;
5555 pnlHelp . Visible = false ;
5656 }
57+ pnlBottomMain . Top = pnlExistingGroups . Bottom + 20 ; // spacing between existing groups and add new group btn
5758
58- pnlBottomMain . Top = pnlExistingGroups . Bottom + 40 ; // spacing between existing groups and add new group btn
59- if ( pnlBottomMain . Bottom > this . RectangleToScreen ( this . ClientRectangle ) . Bottom )
60- pnlLeftColumn . Height = pnlBottomMain . Bottom ;
61- else
62- pnlLeftColumn . Height = this . RectangleToScreen ( this . ClientRectangle ) . Height ; // making left column pnl dynamic
59+ Reset ( ) ;
6360 }
6461
6562 public void LoadCategory ( string dir )
@@ -73,14 +70,18 @@ public void LoadCategory(string dir)
7370 newCategory . BringToFront ( ) ;
7471 newCategory . MouseEnter += new System . EventHandler ( ( sender , e ) => EnterControl ( sender , e , newCategory ) ) ;
7572 newCategory . MouseLeave += new System . EventHandler ( ( sender , e ) => LeaveControl ( sender , e , newCategory ) ) ;
73+ }
7674
77- //pnlLeftColumn.Height = this.Height;
78-
75+ public void Reset ( )
76+ {
77+ if ( pnlBottomMain . Bottom > this . Bottom )
78+ pnlLeftColumn . Height = pnlBottomMain . Bottom ;
79+ else
80+ pnlLeftColumn . Height = this . RectangleToScreen ( this . ClientRectangle ) . Height ; // making left column pnl dynamic
7981 }
8082
8183 private void cmdAddGroup_Click ( object sender , EventArgs e )
8284 {
83- //frmNewGroup newGroup = new frmNewGroup(this);
8485 frmGroup newGroup = new frmGroup ( this ) ;
8586 newGroup . Show ( ) ;
8687 newGroup . BringToFront ( ) ;
@@ -127,5 +128,9 @@ private void githubLink_LinkClicked(object sender, LinkLabelLinkClickedEventArgs
127128 System . Diagnostics . Process . Start ( "https://github.com/tjackenpacken/taskbar-groups/releases" ) ;
128129 }
129130
131+ private void frmClient_Resize ( object sender , EventArgs e )
132+ {
133+ Reset ( ) ;
134+ }
130135 }
131136}
0 commit comments