Update of /cvsroot/mahogany/M/src/gui
In directory usw-pr-cvs1:/tmp/cvs-serv19335/src/gui

Modified Files:
        wxSearchDialog.cpp 
Log Message:
minor GUI layout glitch under Windows fixed

Index: wxSearchDialog.cpp
===================================================================
RCS file: /cvsroot/mahogany/M/src/gui/wxSearchDialog.cpp,v
retrieving revision 1.3
retrieving revision 1.4
diff -b -u -2 -r1.3 -r1.4
--- wxSearchDialog.cpp  23 Jul 2002 22:06:32 -0000      1.3
+++ wxSearchDialog.cpp  23 Jul 2002 23:57:16 -0000      1.4
@@ -167,7 +167,14 @@
    label = new wxStaticText(this, -1, _("&containing"));
    c = new wxLayoutConstraints;
-   c->left.RightOf(m_chkInvert, 2*LAYOUT_X_MARGIN);
+   c->left.RightOf(m_chkInvert);
    c->width.AsIs();
+   // this shouldn't be needed but otherwise under MSW the static text is one
+   // pixel lower than the checkbox which is really ugly -- apparently there is
+   // an off by 1 error somewhere in the constraints calculation code?
+#ifdef OS_WIN
+   c->top.SameAs(m_chkInvert, wxTop);
+#else
    c->centreY.SameAs(m_chkInvert, wxCentreY);
+#endif
    c->height.AsIs();
    label->SetConstraints(c);



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Mahogany-cvsupdates mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates

Reply via email to