SF.net SVN: mahogany: [7480] trunk/M/src
[email protected] Tue, 13 May 2008 13:44:28 -0700
| Newsgroups | gmane.mail.mahogany.cvs |
|---|---|
| Message-ID | <[email protected]> |
Revision: 7480
http://mahogany.svn.sourceforge.net/mahogany/?rev=7480&view=rev
Author: vadz
Date: 2008-05-13 13:44:27 -0700 (Tue, 13 May 2008)
Log Message:
-----------
really solve the problem with listbox top constraint under Windows
Modified Paths:
--------------
trunk/M/src/adb/AdbFrame.cpp
trunk/M/src/gui/wxDialogLayout.cpp
Modified: trunk/M/src/adb/AdbFrame.cpp
===================================================================
--- trunk/M/src/adb/AdbFrame.cpp 2008-05-13 20:34:58 UTC (rev 7479)
+++ trunk/M/src/adb/AdbFrame.cpp 2008-05-13 20:44:27 UTC (rev 7480)
@@ -3586,7 +3586,7 @@
for ( nBtn = 0; nBtn < WXSIZEOF(aszLabels); nBtn++ ) {
c = new wxLayoutConstraints;
if ( nBtn == 0 )
- c->top.SameAs(box, wxTop, 3*LAYOUT_Y_MARGIN);
+ c->top.Set(wxBelow, box, wxTop, 0, 5*LAYOUT_Y_MARGIN);
else
c->top.Below(button, LAYOUT_Y_MARGIN);
c->right.SameAs(box, wxRight, 2*LAYOUT_X_MARGIN);
@@ -3599,7 +3599,7 @@
// and the listbox itself
wxListBox *listbox = new wxListBox(this, -1);
c = new wxLayoutConstraints;
- c->top.SameAs(box, wxTop, 3*LAYOUT_Y_MARGIN);
+ c->top.Set(wxBelow, box, wxTop, 0, 4*LAYOUT_Y_MARGIN);
c->left.SameAs(box, wxLeft, LAYOUT_X_MARGIN);
c->right.LeftOf(button, LAYOUT_X_MARGIN);;
c->bottom.SameAs(box, wxBottom, LAYOUT_Y_MARGIN);
Modified: trunk/M/src/gui/wxDialogLayout.cpp
===================================================================
--- trunk/M/src/gui/wxDialogLayout.cpp 2008-05-13 20:34:58 UTC (rev 7479)
+++ trunk/M/src/gui/wxDialogLayout.cpp 2008-05-13 20:44:27 UTC (rev 7480)
@@ -1032,7 +1032,7 @@
// and the listbox itself
wxListBox *listbox = new wxListBox(GetCanvas(), -1);
c = new wxLayoutConstraints;
- c->top.SameAs(box, wxTop, 5*LAYOUT_Y_MARGIN);
+ c->top.Set(wxBelow, box, wxTop, 0, 4*LAYOUT_Y_MARGIN);
c->left.SameAs(box, wxLeft, LAYOUT_X_MARGIN);
c->right.LeftOf(buttonModify, LAYOUT_X_MARGIN);;
c->bottom.SameAs(box, wxBottom, LAYOUT_Y_MARGIN);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/