EditLive! 9 Documentation : AppletSize Property (ASP.NET only)

This property specifies the height and width of the Ephox EditLive! applet when integrating the applet into an ASP.NET application. 

Syntax

ASP.NET
prefix:EditLiveJava AppletSize = intWidth, intHeight

Parameters

intWidth

This parameter will specify the width of the applet when displayed. The parameter can take the form of either:

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

The default value is 700.

intHeight

This parameter will specify the height of the applet when displayed. The 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 within the HTML element the applet is nested (e.g. "%50" for 50 percent).

The default value is 400.

Examples

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

ASP.NET Server Control
<elj:EditLiveJava 
  AppletSize = "600, 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