File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
src/SharpIDE.Godot/Features/CustomControls Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,8 @@ public partial class InvertedVSplitContainer : VSplitContainer
99 private int _invertedOffset = 200 ;
1010 private bool _invertedCollapsed = false ;
1111
12+ private int _separationWhenUncollapsed ;
13+
1214 public void InvertedSetCollapsed ( bool collapsed )
1315 {
1416 if ( _invertedCollapsed == collapsed ) return ;
@@ -17,16 +19,19 @@ public void InvertedSetCollapsed(bool collapsed)
1719 {
1820 SplitOffset = ( int ) Size . Y + 100 ;
1921 DraggingEnabled = false ;
22+ AddThemeConstantOverride ( ThemeStringNames . Separation , 0 ) ;
2023 }
2124 else
2225 {
2326 SplitOffset = ( int ) Size . Y - _invertedOffset ;
2427 DraggingEnabled = true ;
28+ AddThemeConstantOverride ( ThemeStringNames . Separation , _separationWhenUncollapsed ) ;
2529 }
2630 }
2731
2832 public override void _Ready ( )
2933 {
34+ _separationWhenUncollapsed = GetThemeConstant ( ThemeStringNames . Separation ) ;
3035 Dragged += OnDragged ;
3136 }
3237
You can’t perform that action at this time.
0 commit comments