summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CHANGES1
-rw-r--r--src/Fl_Tile.cxx6
2 files changed, 6 insertions, 1 deletions
diff --git a/CHANGES b/CHANGES
index 39ac34020..32d12fb09 100644
--- a/CHANGES
+++ b/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.
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!
}
}