diff options
| author | Matthias Melcher <fltk@matthiasm.com> | 2007-01-18 10:01:24 +0000 |
|---|---|---|
| committer | Matthias Melcher <fltk@matthiasm.com> | 2007-01-18 10:01:24 +0000 |
| commit | bc842ea528e7654db40f9c60571a48a6fd663804 (patch) | |
| tree | b9f0c21dc7c21abb50195bd4b21cf28b77c28fc0 /src/Fl_Tile.cxx | |
| parent | 5f0156cd027db7bc85b8395ad77e88cde36439c4 (diff) | |
Fixed drawing issues of a tile in a scroll (STR #1507)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5606 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_Tile.cxx')
| -rw-r--r-- | src/Fl_Tile.cxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/Fl_Tile.cxx b/src/Fl_Tile.cxx index ead237cad..2c70ea513 100644 --- a/src/Fl_Tile.cxx +++ b/src/Fl_Tile.cxx @@ -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(); @@ -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! } } |
