/** * Sets the default horizontal overflow. * * <p>This method has no effect on FRAMESETs. * * @param overflow See {@link org.lobobrowser.html.style.RenderState}. */ public void setDefaultOverflowX(final int overflow) { this.defaultOverflowX = overflow; final HtmlBlockPanel block = this.htmlBlockPanel; if (block != null) { block.setDefaultOverflowX(overflow); } }
private void setUpAsBlock(final UserAgentContext ucontext, final HtmlRendererContext rcontext) { final HtmlBlockPanel shp = this.createHtmlBlockPanel(ucontext, rcontext); shp.setPreferredWidth(this.preferredWidth); shp.setDefaultOverflowX(this.defaultOverflowX); shp.setDefaultOverflowY(this.defaultOverflowY); this.htmlBlockPanel = shp; this.frameSetPanel = null; this.removeAll(); this.add(shp); this.nodeRenderer = shp; }