DO NOT REPLY TO THIS MESSAGE.  INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.

[STR New]

Link: http://www.fltk.org/str.php?L2130
Version: 1.1.9


Compile the attached file and shrink the main window vertically. After a
while the box disappears. It reappears when you enlarge the window again.
It looks as though the contents vanish whenever the main window has shrunk
by an amount larger than their height.

The same bug is present if you create a horizontal pack and shrink the
main window horizontally.

Demonstrated on Linux 2.6.27.10, gcc 4.1.2, X.org 7.2, FLTK 1.1.9.


Link: http://www.fltk.org/str.php?L2130
Version: 1.1.9
//
//  This demonstrates a bug in FLTK-1.1.9 .  If you shrink the window
//  vertically of the window then after a short while the boxes
//  suddenly disappear.  They reappear if you stretch the window back
//  to its vertical extent, and disappear again if you shrink it
//  again.
//

#include <FL/Fl.H>
#include <FL/Fl_Window.H>
#include <FL/Fl_Pack.H>
#include <FL/Fl_Box.H>

int main()
{
  Fl_Window *win = new Fl_Window(300, 300, "Packs");
  Fl_Pack *pack = new Fl_Pack(0, 0, win->w(), win->h());
  pack->type(Fl_Pack::VERTICAL);
  (new Fl_Box(0, 0, 100, 100))->box(FL_DOWN_BOX);
  win->resizable(pack);
  win->size_range(1, 1, 0, 0);
  win->show();
  return Fl::run();
}
_______________________________________________
fltk-bugs mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-bugs

Reply via email to