Web pgadmin.org
 Home 
 ·  ·  ·  ·  ·  ·  · 
CVS Commit by andreas: minor ctlSecurityPanel button fix

CVS Commit by andreas: minor ctlSecurityPanel button fix



Log Message:
-----------
minor ctlSecurityPanel button fix

Modified Files:
--------------
    pgadmin3/src/ui:
        ctlSecurityPanel.cpp (r1.4 -> r1.5)

Index: ctlSecurityPanel.cpp
===================================================================
RCS file: /projects/pgadmin3/src/ui/ctlSecurityPanel.cpp,v
retrieving revision 1.4
retrieving revision 1.5
diff -Lsrc/ui/ctlSecurityPanel.cpp -Lsrc/ui/ctlSecurityPanel.cpp -u -w -r1.4 -r1.5
--- src/ui/ctlSecurityPanel.cpp
+++ src/ui/ctlSecurityPanel.cpp
@@ -76,7 +76,7 @@
 
         wxPoint zeroPos=ConvertDialogToPixels(wxPoint(5, 5));
         wxSize chkSize=ConvertDialogToPixels(wxSize(65,12));
-        wxSize btnSize=ConvertDialogToPixels(wxSize(50,15));
+        wxSize btnSize=ConvertDialogToPixels(wxSize(50,-1)); // preliminary height; will be BestSize
         wxSize spcSize=ConvertDialogToPixels(wxSize(2, 2));
 
         {
@@ -93,6 +93,7 @@
 
             btnAddPriv = new wxButton(this, CTL_ADDPRIV, _("Add/Change"), 
                 wxPoint(zeroPos.x, y), btnSize);
+            btnSize = btnAddPriv->GetSize();
             btnDelPriv = new wxButton(this, CTL_DELPRIV, _("Remove"), 
                 wxPoint(zeroPos.x * 2 + btnSize.GetWidth(), y), btnSize);
             y += zeroPos.y + btnSize.GetHeight();


Home | Main Index | Thread Index

top