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


I posted two files:

[1] http://www.fltk.org/strfiles/2130/Fl_Pack_1.diff
[2] http://www.fltk.org/strfiles/2130/pack.cxx

#1: Fl_Pack didn't obey Fl_Group::clip_children(). This fix is necessary
for the demo program pack.cxx.

#2: The demo pack.cxx is an extended version of the OP's pack.cc file 
(compile with fltk-config --compile pack.cxx). I added the x/y/w/h
coordinates before Fl_Pack::draw() (left side) and the w/h values after
draw() (right side). Some boxes and lines (e.g. a white background box)
are for testing only.

This is not a fix yet, but the effect can be seen better. Look for the w
and h values on the left side (before draw): they become negative if the
window is being shrunk enough!

The clip button works only after applying [1] and shows a much better
behavior.

I'll start a discussion "RFC: Negative widget width and/or height ?" in
fltk.development about the aspects of negative width and height...


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

_______________________________________________
fltk-bugs mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-bugs

Reply via email to