Try resource="$path{'@icon'}"


The "@icon" string is an xpath expression refering to the icon attribute.

-e


---=---===-------

Elliot Winard

Sr. Software Engineer

Laszlo Studios

---=---===-------



On Mon, Jun 25, 2007 at 11:31 AM, [EMAIL PROTECTED] wrote:




I'm using OL 4.0.2 server, i have a view in stretchesview class with resource = "${classroot.datapath.getNodeAttribute('icon')}" pointing to a dataset and stretches="both", but it doesn't work, the height of the resource doesn't fix to the view, only the width.


However, if resource attribute has a value resource="RbGreen" the attribute stretches= "both" works well. Can anybody help me?


<canvas debug="true">


        <resource name="art/RbGreen" src="RbGreen.png"/>


        <dataset name="test">

            <pane name="pane1" icon="RbGreen"/>

            <pane name="pane1" icon="RbGreen"/>

            <pane name="pane1" icon="RbGreen"/>

        </dataset>


        <class name="stretchesview">

<view width="100%" height="100%" bgcolor="red" resource="${classroot.datapath.getNodeAttribute('icon')}" stretches="both" clickable="true"/>

        </class>


        <view width="500" height="500" bgcolor="blue">

                <simplelayout/>

<stretchesview width="10%" height="10%" datapath="test:/pane"/>

        </view>

</canvas>



Bye.


Reply via email to