]> git.saurik.com Git - wxWidgets.git/blobdiff - src/html/helpwnd.cpp
invalidate the best size when adding or deleting items
[wxWidgets.git] / src / html / helpwnd.cpp
index 38b185a6ddac0619f2d15bdecce73310c900333c..17a376198b6e5fadb54e9456195ce91adb99be14 100644 (file)
@@ -119,6 +119,10 @@ public:
         const wxMouseEvent *e = ev.GetLinkInfo().GetEvent();
         if (e == NULL || e->LeftUp())
             m_Window->NotifyPageChanged();
+
+        // skip the event so that normal processing (i.e. following the link)
+        // is done:
+        ev.Skip();
     }
 
     // Returns full location with anchor (helper)
@@ -1195,8 +1199,8 @@ public:
                       wxSize(200, wxDefaultCoord),
                       0, NULL, wxCB_DROPDOWN | wxCB_READONLY));
 
-        sizer->Add(FontSize = new wxSpinCtrl(this, wxID_ANY));
-        FontSize->SetRange(2, 100);
+        sizer->Add(FontSize = new wxSpinCtrl(this, wxID_ANY, wxEmptyString, wxDefaultPosition,
+                      wxDefaultSize, wxSP_ARROW_KEYS, 2, 100, 2, _T("wxSpinCtrl")));
 
         topsizer->Add(sizer, 0, wxLEFT|wxRIGHT|wxTOP, 10);