EditLive! 9 Documentation : setResizableSections

This property controls whether EditLive! will resize the editable area when content changes. It is recommended that this only be enabled for inline editing with the tabs turned off.

For more information on inline editing see the Using Inline Editing article. 

Important

It is recommended that a doctype be used on your webpage to ensure that Internet Explorer does not use IE5 Quirks mode. Inline sections may not resize correctly in Internet Explorer if the page is using IE5 Quirks mode.

See the W3C Recommended list of Doctype declarations for information on doctype declarations that can be used.

Syntax

JavaScript
editliveInstance.setResizableSections(bResizable);
Parameters

bResizable

A boolean value indicating whether or not EditLive! will resize the editable area when content changes.

This value defaults to false.

Examples

The following code demonstrates a page with two resizable sections and one non-resizable section. It requires that three divs with the ID's "div1", "div2" and "div3" exist on the page. Only the first and third inline sections will resize when content changes.

JavaScript
var editlive_js;
editlive_js = new EditLiveJava("ELApplet1","700","400"); 
...
editlive_js.setResizableSections(true);
editlive_js.addEditableSection("div1");
editlive_js.addEditableSection("div3");
editlive_js.setResizableSections(false);
editlive_js.addEditableSection("div2");