Sorry, i wrote a wrong code example, the resource tag is <resource 
name="RbGreen" src="art/RbGreen.png" />. 

Can anybody help me? :)

Bye.

------------------------------------------------------
[EMAIL PROTECTED]
miguel.luna
Enviado por: [EMAIL PROTECTED]
25/06/2007 17:31

Para:
[email protected]
cc:

Asunto:
[Laszlo-user] Take a resource from a dataset. Stretches problem.




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