EditLive! 9 Documentation : setHeight Method

This property specifies the height of the Ephox EditLive! applet in pixels. 

When creating an instance of EditLive! using JavaScript and ASP.NET, this property is not needed. The height of the applet is defined in the EditLive! JavaScript Constructor for Javascript and by the AppletSize property for ASP.NET.

Syntax

Visual Basic Script
object.Height = intHeight
ASP.NET - EditLiveJava control
prefix:EditLiveJava Height="unitHeight"
ASP.NET - EditableSection control
prefix:EditableSection Height="unitHeight"

Parameters

intHeight

This parameter will specify the height of the applet when displayed.

This parameter can take the form of either:

  • An integer representing the height of the applet in pixels (e.g. 200 for 200 pixels), or
  • A percentage representing the height the applet consumes with-in the HTML element the applet is nested (e.g. 50% for 50 percent).

The default value is 400.

unitHeight

This parameter will specify the height of the applet when displayed.

This parameter is a pixel or percentage value, e.g. "400px", "100%".

The default value is 400px.

Examples

The following code would set the height of the EditLive! instance to 500 pixels.

VBScript
editlive1.Height = 500

Remarks

Ephox recommends setting the height in pixels, as on Macintosh machines if these values are set as percentages and the Web browser is resized, EditLive! will not be resized with the window.

See Also