Commits

Herbert Breunung committed f18d772

got finally the layout constrains right

  • Participants
  • Parent commits 88fb10f

Comments (0)

Files changed (1)

File 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;
 }