I noticed that scrolling the Fl_File_Browser (either by dragging the scroll 
bar, or using the mouse scroll wheel) before clicking inside the widget doesn't 
seem to properly update the position of the browser because a subsequent click 
will cause the browser to reset to its initial position.  Example: If the 
browser has files 0, 1, 2, 3, 4, 5, but the window is only big enough to show 
0, 1, 2 when initially opened.  Scrolling appears to work, say you scroll to 
the bottom, so that 3, 4, 5 is visible.  But now, if you try to click on 4, the 
browser will reset so that 0, 1, 2 is showing and 1 is selected.  This only 
seems to happen on the initial show of the browser.  After clicking on a file, 
scrolling works properly.

I've been using Fedora's fltk-devel-1.1.8 package and g++.

Test code:
#include <FL/Fl.H>
#include <FL/Fl_File_Chooser.H>
int main() {
     Fl_File_Chooser choose(NULL, NULL, Fl_File_Chooser::SINGLE, "Do a scroll, 
then click a file" );
     choose.show();
     return(Fl::run());
}
_______________________________________________
fltk-bugs mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-bugs

Reply via email to