rem: while (parent != null) { 
add: while (!(parent instanceof tw_Frame || parent instanceof tw_Dialog)) { 
context:     setDropDownVisible: function(state) {        if (this._ddComp == null) return;                if (state) {            var parent = this.getParent();             var offsetX = this.getX();            var offsetY = this.getY();            while (parent != null) {                offsetX += parent.getX() + parent.getOffsetX();                offsetY += parent.getY() + parent.getOffsetY();                parent = parent.getParent();            }                        var comp = this._ddComp;                        var availableHeight = tw_getVisibleHeight() - comp._box.parentNode.offsetTop - offsetY - this._height;            offsetY += (availableHeight < comp._height ? -comp._height : this._height);            comp.setY(offsetY);            comp.setX(offsetX);            comp.setVisible(true);            comp.setFocus(true);        } else {            this._ddComp.setVisible(false);        }    },
meta: 5515	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5515/f1782c774313ba79c127ba5da30580c5ce1f4c32/DropDown.js/buggy/src/thinwire/render/web/resources/DropDown.js