Author: manolo
Date: 2012-05-16 06:44:50 -0700 (Wed, 16 May 2012)
New Revision: 9502
Log:
Fixed fltk3::Group::resize() for group-relative coordinates

Modified:
   branches/branch-3.0/src/fltk3/Group.cxx

Modified: branches/branch-3.0/src/fltk3/Group.cxx
===================================================================
--- branches/branch-3.0/src/fltk3/Group.cxx     2012-05-16 11:36:43 UTC (rev 
9501)
+++ branches/branch-3.0/src/fltk3/Group.cxx     2012-05-16 13:44:50 UTC (rev 
9502)
@@ -631,24 +631,14 @@
 
   Widget::resize(X,Y,W,H); // make new xywh values visible for children
 
-  if (!resizable() || (dw==0 && dh==0) ) {
+  if (children_) {
 
-    if (!as_window()) {
-      fltk3::Widget*const* a = array();
-      for (int i=children_; i--;) {
-       fltk3::Widget* o = *a++;
-       o->resize(o->x()+dx, o->y()+dy, o->w(), o->h());
-      }
-    }
-    
-  } else if (children_) {
-
     // get changes in size/position from the initial size:
     dx = X - p[0];
     dw = W - (p[1]-p[0]);
     dy = Y - p[2];
     dh = H - (p[3]-p[2]);
-    if (as_window()) dx = dy = 0;
+    /*if (as_window())*/ dx = dy = 0;
     p += 4;
 
     // get initial size of resizable():

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

Reply via email to