package org.xwt;
import org.bouncycastle.util.encoders.Base64;
+import org.xwt.js.*;
import org.xwt.util.*;
import java.io.*;
import java.util.*;
this.root = root;
Surface old = fromBox(root);
if (old != null) old.dispose(false);
- else root.put("thisbox", null);
+ else try {
+ root.put("thisbox", null);
+ } catch (JSExn e) {
+ throw new Error("this should never happen");
+ }
// make sure the root is properly sized
do { abort = false; root.reflow(root.width, root.height); } while(abort);