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
This commit is contained in:
parent
b32f322c12
commit
c599778795
@ -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 $".
|
||||
//
|
||||
|
Loading…
Reference in New Issue
Block a user