Update of /cvsroot/mahogany/M/src/modules
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8014/src/modules

Modified Files:
        TextViewer.cpp HtmlViewer.cpp 
Log Message:
create viewer window with correct size initially, this avoids flicker later when it is 
resized

Index: TextViewer.cpp
===================================================================
RCS file: /cvsroot/mahogany/M/src/modules/TextViewer.cpp,v
retrieving revision 1.62
retrieving revision 1.63
diff -b -u -2 -r1.62 -r1.63
--- TextViewer.cpp      26 Jul 2004 13:34:48 -0000      1.62
+++ TextViewer.cpp      19 Sep 2004 08:39:38 -0000      1.63
@@ -355,5 +355,6 @@
 TextViewerWindow::TextViewerWindow(TextViewer *viewer, wxWindow *parent)
                 : wxTextCtrl(parent, -1, _T(""),
-                             wxDefaultPosition, wxDefaultSize,
+                             wxDefaultPosition,
+                             parent->GetClientSize(),
                              wxTE_RICH2 |
 #ifdef USE_AUTO_URL_DETECTION

Index: HtmlViewer.cpp
===================================================================
RCS file: /cvsroot/mahogany/M/src/modules/HtmlViewer.cpp,v
retrieving revision 1.71
retrieving revision 1.72
diff -b -u -2 -r1.71 -r1.72
--- HtmlViewer.cpp      18 Sep 2004 22:25:49 -0000      1.71
+++ HtmlViewer.cpp      19 Sep 2004 08:39:38 -0000      1.72
@@ -461,5 +461,6 @@
 HtmlViewerWindow::HtmlViewerWindow(HtmlViewer *viewer, wxWindow *parent)
                 : wxHtmlWindow(parent, -1,
-                               wxDefaultPosition, wxDefaultSize,
+                               wxDefaultPosition,
+                               parent->GetClientSize(),
                                wxHW_SCROLLBAR_AUTO | wxBORDER_SIMPLE)
 {



-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
_______________________________________________
Mahogany-cvsupdates mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates

Reply via email to