if (root.getRenderWidth() != root.getWidth()) {
if (root.getRenderWidth() != root.getLayoutWidth()) {
    private void startLayoutLoop() throws InterruptedException {        while (true) {            //Uu.p("waiting for a layout event");            ReflowEvent evt = root.queue.waitForNextLayoutEvent();            if (evt == null) {                return;            }            Uu.p("got a layout event: " + evt);            evt = root.queue.collapseLayoutEvents(evt);            // if only the height changed, then lets just skip the event            int mxw = root.getContext().getMaxWidth();            // Uu.p("current max width = " + mxw);            // the actual width of the panel            // Uu.p("current width = " + root.getWidth());            // the dimensions from the event            // Uu.p("evt width = " + evt.getDimension());            // ??? the last width we rendered to? the width we want to render to?            // Uu.p("rendered width = " + root.getRenderWidth());                        if (evt.getDimension() != null) {                // if the renderwidth != to the actual panel width, then re-layout                if (root.getRenderWidth() != root.getWidth()) {                    // Uu.p("render width != panel width. resizing");                    doRelayout(evt);                } else {                    continue;                    /*                    if (root.getRenderWidth() == evt.getDimension().getWidth()) {                        Uu.p("same width. Just continuing");                        continue;                    } else {                        Uu.p("evt width : " + evt.getDimension().getWidth() +                                " differs from last rendered width: " + root.getRenderWidth());                        doRelayout(evt);                    }                    */                }            } else {                //Uu.p("empty dimension. doing a full re-layout");                doRelayout(evt);            }        }    }