Index: /extensions/pLoader/trunk/src/Uploader/GUI/Layout/PhotoPropertiesCategoriesTags.pm
===================================================================
--- /extensions/pLoader/trunk/src/Uploader/GUI/Layout/PhotoPropertiesCategoriesTags.pm	(revision 5394)
+++ /extensions/pLoader/trunk/src/Uploader/GUI/Layout/PhotoPropertiesCategoriesTags.pm	(revision 5403)
@@ -53,5 +53,5 @@
 
     # defines minimum size
-    my( $item2 ) = Wx::Notebook->new( $parent, $main::PHOTO_PROPERTIES_NB, wxDefaultPosition, [450,160], 0 );
+    my( $item2 ) = Wx::Notebook->new( $parent, $main::PHOTO_PROPERTIES_NB, wxDefaultPosition, [450,-1], 0 );
     my( $item1 ) = $item2;
     if( Wx->VERSION < 0.21 ) {
@@ -72,5 +72,8 @@
     );
     $tree_categories->Populate;
-    $topsizer->AddWindow( $tree_categories, 1, wxEXPAND|wxALL, 5 );
+    my( $cat_sizer ) = Wx::BoxSizer->new( wxHORIZONTAL );
+    $cat_sizer->Add( $tree_categories, 1, wxEXPAND|wxALL, 5 );
+
+    $topsizer->Add( $cat_sizer, 1, wxEXPAND|wxALL, 5 );
 
     my( $item4 ) = Wx::StaticLine->new( $parent, $main::ID_LINE, wxDefaultPosition, [20,-1], wxLI_HORIZONTAL );
@@ -84,5 +87,5 @@
 
     $parent->SetSizer( $topsizer );
-    $topsizer->SetSizeHints( $parent );
+    $topsizer->Fit( $parent );
 
     $topsizer;
@@ -95,14 +98,11 @@
     my( $topsizer ) = Wx::BoxSizer->new( wxVERTICAL );
     
-    my( $item1 ) = Wx::StaticText->new( $parent, $main::TAGS, "text", wxDefaultPosition, wxDefaultSize, 0 );
-    $topsizer->AddWindow( $item1, 0, wxALIGN_CENTER_VERTICAL|wxBOTTOM, 5 );
-
     $tags->{parentwnd}=$parent;
     my( $panel ) = Uploader::GUI::wxChoiceFilteredPanel->new($tags);
     # the panel has adaptive size : stretch factor 1, wxEXPAND
-    $topsizer->AddWindow( $panel, 1, wxEXPAND|wxALIGN_CENTER_VERTICAL|wxALL, 5 );
+    $topsizer->AddWindow( $panel, 1, wxEXPAND|wxALL, 5 );
 
     $parent->SetSizer( $topsizer );
-    $topsizer->SetSizeHints( $parent );
+    $topsizer->Fit( $parent );
     
     $topsizer;
@@ -198,5 +198,5 @@
 
     $parent->SetSizer( $topsizer );
-    $topsizer->SetSizeHints( $parent );
+    $topsizer->Fit( $parent );
     
     $topsizer;
