From c599778795d0ba9714bcfd3cbb7971627ebd31ab Mon Sep 17 00:00:00 2001 From: Bill Spitzak Date: Thu, 4 Mar 1999 07:34:04 +0000 Subject: [PATCH] Fix for browser horizontally scrolling. This produces some odd (but maybe not broken) behavior for centered and right-justified lines, so maybe it is not such a great fix. git-svn-id: file:///fltk/svn/fltk/trunk@353 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_Browser_.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Fl_Browser_.cxx b/src/Fl_Browser_.cxx index 27fe2fd67..ab636af10 100644 --- a/src/Fl_Browser_.cxx +++ b/src/Fl_Browser_.cxx @@ -1,5 +1,5 @@ // -// "$Id: Fl_Browser_.cxx,v 1.8 1999/01/07 19:17:17 mike Exp $" +// "$Id: Fl_Browser_.cxx,v 1.9 1999/03/04 07:34:04 bill Exp $" // // Base Browser widget class for the Fast Light Tool Kit (FLTK). // @@ -280,7 +280,7 @@ J1: fl_color(textcolor()); fl_rect(X+1, yy+Y, W-2, hh); } - item_draw(l, X-hposition_, yy+Y, W, hh); + item_draw(l, X-hposition_, yy+Y, W+hposition_, hh); int w = item_width(l); if (w > max_width) {max_width = w; max_width_item = l;} } @@ -633,5 +633,5 @@ void Fl_Browser_::item_select(void*, int) {} int Fl_Browser_::item_selected(void* l) const {return l==selection_;} // -// End of "$Id: Fl_Browser_.cxx,v 1.8 1999/01/07 19:17:17 mike Exp $". +// End of "$Id: Fl_Browser_.cxx,v 1.9 1999/03/04 07:34:04 bill Exp $". //