示例#1
0
 public void resize(Coord sz) {
   IBox box;
   int th;
   if (cap == null) {
     box = wbox;
     th = 0;
   } else {
     box = topless;
     th = Window.th;
   }
   sz = sz.add(box.bisz()).add(0, th).add(mrgn.mul(2));
   this.sz = sz;
   ctl = box.btloff().add(0, th);
   csz = sz.sub(box.bisz()).sub(0, th);
   atl = ctl.add(mrgn);
   asz = csz.sub(mrgn.mul(2));
   ac = new Coord();
   // ac = tlo.add(wbox.btloff()).add(mrgn);
   placetwdgs();
   for (Widget ch = child; ch != null; ch = ch.next) ch.presize();
 }
示例#2
0
 public void resize(Coord sz) {
   this.sz = sz;
   for (Widget ch = child; ch != null; ch = ch.next) ch.presize();
   if (parent != null) parent.cresize(this);
 }