if(this.visible == true){ // Reminds the app that the size of the interior content just changed, since // the scrollbars will normally only update themselves when the canvas size changes. // NOTE: This should work by sending canvas.onwidth.sendEvent() and canvas.onheight.sendEvent(), // which would be more concise, but for reasons I can't quite seem to discern, // that will inconsistently result in the vertical scrollbar being shortened. cvscroll.setAttribute('scrollheight', (chscroll.visible ? canvas.height - 15 : canvas.height+1)); chscroll.setAttribute('scrollwidth', (cvscroll.visible ? canvas.width - 15 : canvas.width+1)); } if (p != null) { this.setAttribute('text', this.i18nUser + ": " + p.childNodes[0]); } if (p != null) { this.setAttribute('text', this.i18nLastLogin + ": " + p.childNodes[0]); }