resizestate
can be used to change the
width and height of a view in response to the movement of the
mouse.
In the example below, the resizestate
tracks
differences in the mouse position from after it is applied, so the
bottom right corner of the resizing view does not snap to the
mouse position.
Example 87. Resizing a view using the mouse
<canvas
height
="120
">
<view
bgcolor
="green
" width
="100
" height
="100
" onmousedown
="rs.setAttribute('applied', true)
" onmouseup
="rs.setAttribute('applied', false)
">
<resizestate
name
="rs
"/>
</view
>
</canvas
>
classroot, cloneManager, data, datapath, defaultplacement, id, ignoreplacement, immediateparent, inited, initstage, name, nodeLevel, options, parent, placement, styleclass, subnodes, transition
Methods
animate, applyConstraintMethod, applyData, childOf, completeInstantiation, construct, createChildren, dataBindAttribute, destroy, determinePlacement, getOption, getUID, init, lookupSourceLocator, releaseConstraint, releaseConstraintMethod, searchImmediateSubnodes, searchSubnodes, setOption, setSelected, updateData
Events
Copyright © 2002-2010 Laszlo Systems, Inc. All Rights Reserved. Unauthorized use, duplication or distribution is strictly prohibited. This is the proprietary information of Laszlo Systems, Inc. Use is subject to license terms.