Commits

Herbert Breunung committed f18d772

got finally the layout constrains right

Comments (0)

Files changed (1)

lib/Kephra/App/Window.pm

     $sizer{'below'}->Add( $op, 1, &Wx::wxGROW );
 
     $splitter{'left'}->SplitVertically( $panel{'left'}, $splitter{'right'}, 200);
+    $splitter{'left'}->SetSashGravity(0);
+    $splitter{'left'}->SetSashPosition(200);
+    $splitter{'left'}->SetMinimumPaneSize(140);
     $splitter{'right'}->SplitVertically( $splitter{'below'}, $panel{'right'}, -200);
+    $splitter{'right'}->SetSashGravity(1);
+    $splitter{'right'}->SetSashPosition(-200);
+    $splitter{'right'}->SetMinimumPaneSize(140);
     $splitter{'below'}->SplitHorizontally( $splitter{'edit'}, $panel{'below'}, -200);
+    $splitter{'below'}->SetSashGravity(1);
+    $splitter{'below'}->SetSashPosition(-200);
+    $splitter{'below'}->SetMinimumPaneSize(100);
     $splitter{'edit'}->Initialize( $panel{'edit'} );
 
-    #$fb->Reparent( $spliter{'left'} );  #$spliter{'middle'}->SetSashGravity(0.5);
-    #SplitterWindow->new( $panel{'main'}, -1,[-1,-1],[-1,-1],&Wx::wxSP_NOBORDER  );
+    #Wx::Event::EVT_SPLITTER_DCLICK( ,sub {});
+    #&Wx::wxSP_NOBORDER  );
 
     Wx::Event::EVT_MENU( $win, 1000, sub { $nbl->add_edit_page() } );
 
     $sizer{'win'} = Wx::BoxSizer->new( &Wx::wxHORIZONTAL );
     $sizer{'win'}->Add( $panel{'main'}, 1, &Wx::wxGROW );
     $win->SetSizer( $sizer{'win'});
-
-    #my $nbl = Kephra::App::TabBar->new( $panel{'edit'} );
-    #$panel{ 'main' } = Wx::Panel->new( $win );
-    #$sizer{'main'}->Add( $spliter{'left'}, 1, &Wx::wxGROW);
-    #$sizer{'win'} = Wx::BoxSizer->new( &Wx::wxHORIZONTAL );
-    #$sizer{'win'}->Add( $panel{'edit'}, 1, &Wx::wxGROW );
-    #$win->SetSizer( $sizer{'win'});
-
     return $win;
 }
 
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.