Column sizing tweaks
authordpage <dpage@a7884b65-44f6-0310-8a51-81a127f17b15>
Mon, 2 Mar 2009 10:51:33 +0000 (10:51 +0000)
committerdpage <dpage@a7884b65-44f6-0310-8a51-81a127f17b15>
Mon, 2 Mar 2009 10:51:33 +0000 (10:51 +0000)
git-svn-id: svn://svn.pgadmin.org/trunk/pgadmin3@7639 a7884b65-44f6-0310-8a51-81a127f17b15

pgadmin/frm/events.cpp
pgadmin/frm/frmMain.cpp
pgadmin/schema/pgObject.cpp

index 22ba8b5157bdd707b47283bac4055fa9090bbe24..a780867b273ac1a20c57dc80a9a40e787d8dcad5 100644 (file)
@@ -254,7 +254,7 @@ void frmMain::execSelChange(wxTreeItemId item, bool currentNode)
     if (currentNode)
     {
         properties->ClearAll();
-        properties->AddColumn(_("Properties"), 500);
+        properties->AddColumn(_("Properties"), properties->GetSize().GetWidth() - 10);
         properties->InsertItem(0, _("No properties are available for the current selection"), PGICON_PROPERTY);
 
         sqlPane->Clear();
index 297f6c40c7bf5636546c257face9501fea412703..605d6965981bf6956a37f6d3d353057e116cb153 100644 (file)
@@ -645,7 +645,7 @@ void frmMain::ShowObjStatistics(pgObject *data, int sel)
         {
             statistics->Freeze();
             statistics->ClearAll();
-            statistics->AddColumn(_("Statistics"), 500);
+            statistics->AddColumn(_("Statistics"), statistics->GetSize().GetWidth() - 10);
             statistics->InsertItem(0, _("No statistics are available for the current selection"), PGICON_STATISTICS);
             data->ShowStatistics(this, statistics);
             statistics->Thaw();
index 40404839e4d476be7d2f09952a1bbd8089ff47e9..fc2b04dccddc9fc48f9f87cb8b7d94f212b3efcb 100644 (file)
@@ -313,17 +313,17 @@ void pgObject::ShowDependency(pgDatabase *db, ctlListView *list, const wxString
 void pgObject::CreateList3Columns(ctlListView *list, const wxString &left, const wxString &middle, const wxString &right)
 {
     list->ClearAll();
-    list->AddColumn(left, 90);
-    list->AddColumn(middle, 50);
-    list->AddColumn(right, 400);
+    list->AddColumn(left, 80);
+    list->AddColumn(middle, 80);
+    list->AddColumn(right, list->GetSize().GetWidth() - 170);
 }
 
 
 void pgObject::CreateListColumns(ctlListView *list, const wxString &left, const wxString &right)
 {
     list->ClearAll();
-    list->AddColumn(left, 90);
-    list->AddColumn(right, 450);
+    list->AddColumn(left, 130);
+    list->AddColumn(right, list->GetSize().GetWidth() - 140);
 }