From a529510e5b8f84b15aacd103936df89bb767bb29 Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Mon, 26 Jul 2004 20:52:52 +0000 Subject: More documentation updates... Fl_File_Chooser did not handle some cases for filename completion (STR #376) Fl_Help_View didn't properly compute the default maximum width of the page properly, resulting in non-wrapped text in table cells (STR #464) Fl_Text_Editor no longer tries to emulate the Emacs CTRL-A shortcut to move to the first column, since there is a key for that and the widget does not emulate any other Emacs keys (STR #421) Fl_File_Chooser always disabled the OK button when the user pressed DELETE or BACKSPACE (STR #397) Added Fl_Browser::swap() methods (STR #459) git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3698 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_Help_View.cxx | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'src/Fl_Help_View.cxx') diff --git a/src/Fl_Help_View.cxx b/src/Fl_Help_View.cxx index 36ae551f3..b8a0da47f 100644 --- a/src/Fl_Help_View.cxx +++ b/src/Fl_Help_View.cxx @@ -1,5 +1,5 @@ // -// "$Id: Fl_Help_View.cxx,v 1.1.2.51 2004/07/23 21:12:24 easysw Exp $" +// "$Id: Fl_Help_View.cxx,v 1.1.2.52 2004/07/26 20:52:51 easysw Exp $" // // Fl_Help_View widget routines. // @@ -1125,6 +1125,10 @@ Fl_Help_View::format() format_table(&table_width, columns, start); if ((xx + table_width) > hsize_) { +#ifdef DEBUG + printf("xx=%d, table_width=%d, hsize_=%d\n", xx, table_width, + hsize_); +#endif // DEBUG hsize_ = xx + table_width; done = 0; break; @@ -1953,7 +1957,7 @@ Fl_Help_View::format_table(int *table_width, // O - Total table width int scale_width = *table_width; if (scale_width == 0) { - if (width > hsize_) scale_width = hsize_; + if (width > (hsize_ - 24)) scale_width = hsize_ - 24; else scale_width = width; } @@ -2806,5 +2810,5 @@ hscrollbar_callback(Fl_Widget *s, void *) // -// End of "$Id: Fl_Help_View.cxx,v 1.1.2.51 2004/07/23 21:12:24 easysw Exp $". +// End of "$Id: Fl_Help_View.cxx,v 1.1.2.52 2004/07/26 20:52:51 easysw Exp $". // -- cgit v1.2.3