mirror of https://github.com/fltk/fltk
Fl_Pack didn't obey clip_children() (STR #2130).
This doesn't solve the OP's problem, but is useful, although Fl_Pack resizes to surround its children anyway. I'm thinking of outside labels here, that might else be drawn outside the Fl_Pack area. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@6867 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
parent
6fecfa7dc9
commit
8d710d460b
1
CHANGES
1
CHANGES
|
@ -1,5 +1,6 @@
|
|||
CHANGES IN FLTK 1.1.10
|
||||
|
||||
- Fl_Pack didn't obey clip_children() (STR #2130)
|
||||
- Updated mirror sites in documentation (STR #2220)
|
||||
- Setting a default font for Xft (STR #2216)
|
||||
- Temporarily limited builds to 32-bit on OX S to stay
|
||||
|
|
|
@ -70,6 +70,9 @@ void Fl_Pack::draw() {
|
|||
rh += spacing_;
|
||||
}
|
||||
}
|
||||
|
||||
if (clip_children()) fl_push_clip(tx,ty,tw,th);
|
||||
|
||||
for (int i = children(); i--;) {
|
||||
Fl_Widget* o = *a++;
|
||||
if (o->visible()) {
|
||||
|
@ -115,7 +118,9 @@ void Fl_Pack::draw() {
|
|||
current_position += spacing_;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if (clip_children()) fl_pop_clip();
|
||||
|
||||
if (horizontal()) {
|
||||
if (maximum_position < tx+tw && box()) {
|
||||
fl_color(color());
|
||||
|
|
Loading…
Reference in New Issue