Description
this state is designed to be applied to a view that has defined the
attributes: minwidth and minheight
Details
Properties (4)
-
height
-
<attribute name="height" value="${Math.max((this.immediateparent.getMouse( 'y' )- yroffset), minheight)}" />
-
width
-
<attribute name="width" value="${Math.max((this.immediateparent.getMouse( 'x' )- xroffset), minwidth)}" />
-
xroffset
-
<attribute name="xroffset" value="$once{this.x - this.width + this.getMouse( 'x' )}" />
-
yroffset
-
<attribute name="yroffset" value="$once{this.y - this.height + this.getMouse( 'y' ) }" />
LZX Synopsis
<class name="
lz.resizestatemin" extends="
LzState
">
<attribute name="
height
" value="
${Math.max((this.immediateparent.getMouse( 'y' )- yroffset), minheight)}" />
<attribute name="
width
" value="
${Math.max((this.immediateparent.getMouse( 'x' )- xroffset), minwidth)}" />
<attribute name="
xroffset
" value="
$once{this.x - this.width + this.getMouse( 'x' )}" />
<attribute name="
yroffset
" value="
$once{this.y - this.height + this.getMouse( 'y' ) }" />
</class>
JavaScript Synopsis
public
lz.resizestatemin extends
LzState
{
}