DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.
[STR New]
Link: http://www.fltk.org/str.php?L2886
Version: 1.3-current
I get strange resize artifacts when resizing a window that contains an
Fl_Tile with children having scrollbars. In effect, the scrollbars of the
tile children overlap the widgets adjacent to the tile.
To reproduce:
* launch the attached tile example
* resize the window by dragging the bottom edge up
* when the browser child approaches zero height, the scrollbar button
overlaps the box widget
The problem can also be seen with the horizontal scrollbar: uncomment the
second add() in the bb() routine and run the same test.
Link: http://www.fltk.org/str.php?L2886
Version: 1.3-current
#include <FL/Fl.H>
#include <FL/Fl_Double_Window.H>
#include <FL/Fl_Tile.H>
#include <FL/Fl_Box.H>
#include <FL/Fl_Browser.H>
void bb(int x, int y, int w, int h)
{
Fl_Browser *b = new Fl_Browser(x, y, w, h);
for(int i = 0; i < 50; i++){
b->add("text");
//b->add("uncomment this to have horizontal scrollbar appear");
}
}
int main(int argc, char** argv) {
Fl_Double_Window window(300,400);
window.box(FL_NO_BOX);
window.resizable(window);
Fl_Tile tile(0,0,300,300);
bb(0,0,300,100);
bb(0,100,300,200);
tile.end();
Fl_Box box(0, 200, 100, 300, "A box");
window.resizable(tile);
window.end();
window.show(argc,argv);
return Fl::run();
}
_______________________________________________
fltk-bugs mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-bugs