Skip to content

Commit

Permalink
Fixed drawing issues of a tile in a scroll (STR #1507)
Browse files Browse the repository at this point in the history
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5606 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
  • Loading branch information
Matthias Melcher committed Jan 18, 2007
1 parent 5f0156c commit bc842ea
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGES
@@ -1,5 +1,6 @@
CHANGES IN FLTK 1.1.8

- Fixed drawing issues of a tile in a scroll (STR #1507)
- Fixed dismissing buttons in menu bars (STR #1494)
- Making a child group visible in a Fl_Tabs or Fl_Wizard
group now shows that tab or pane.
Expand Down
6 changes: 5 additions & 1 deletion src/Fl_Tile.cxx
Expand Up @@ -66,6 +66,8 @@ void Fl_Tile::position(int oix, int oiy, int newx, int newy) {

// move the lower-right corner (sort of):
void Fl_Tile::resize(int X,int Y,int W,int H) {
//Fl_Group::resize(X, Y, W, H);
//return;
// remember how much to move the child widgets:
int dx = X-x();
int dy = Y-y();
Expand All @@ -92,7 +94,9 @@ void Fl_Tile::resize(int X,int Y,int W,int H) {
int B = yy+o->h();
if (*p++ >= OB) yy += dh; else if (yy > NB) yy = NB;
if (*p++ >= OB) B += dh; else if (B > NB) B = NB;
o->resize(xx,yy,R-xx,B-yy); o->redraw();
o->resize(xx,yy,R-xx,B-yy);
// do *not* call o->redraw() here! If you do, and the tile is inside a
// scroll, it'll set the damage areas wrong for all children!
}
}

Expand Down

0 comments on commit bc842ea

Please sign in to comment.