summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBill Spitzak <spitzak@gmail.com>1999-03-04 07:34:04 +0000
committerBill Spitzak <spitzak@gmail.com>1999-03-04 07:34:04 +0000
commitc599778795d0ba9714bcfd3cbb7971627ebd31ab (patch)
tree25c35cc4f6a77b79755bad67341e1b23d413f033 /src
parentb32f322c12d107152f441f9554044bd5b7d67b24 (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/Fl_Browser_.cxx6
1 files 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 $".
//