From dab18f50e0c6aff35fdcc8e7069fd6527f8815ed Mon Sep 17 00:00:00 2001 From: dpage Date: Mon, 2 Mar 2009 10:51:33 +0000 Subject: [PATCH] Column sizing tweaks git-svn-id: svn://svn.pgadmin.org/trunk/pgadmin3@7639 a7884b65-44f6-0310-8a51-81a127f17b15 --- pgadmin/frm/events.cpp | 2 +- pgadmin/frm/frmMain.cpp | 2 +- pgadmin/schema/pgObject.cpp | 10 +++++----- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/pgadmin/frm/events.cpp b/pgadmin/frm/events.cpp index 22ba8b515..a780867b2 100644 --- a/pgadmin/frm/events.cpp +++ b/pgadmin/frm/events.cpp @@ -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(); diff --git a/pgadmin/frm/frmMain.cpp b/pgadmin/frm/frmMain.cpp index 297f6c40c..605d69659 100644 --- a/pgadmin/frm/frmMain.cpp +++ b/pgadmin/frm/frmMain.cpp @@ -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(); diff --git a/pgadmin/schema/pgObject.cpp b/pgadmin/schema/pgObject.cpp index 40404839e..fc2b04dcc 100644 --- a/pgadmin/schema/pgObject.cpp +++ b/pgadmin/schema/pgObject.cpp @@ -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); } -- 2.39.5