mallesh
04-30-2004, 04:00 AM
Hi Antun,
I am displaying the images in a view by adding the nodes into the dataset.
like,
var dptr = canvas.mydataset.getPointer();
itemDptr = dptr.addNodeFromPointer(dpth);
<class name="MyView" datapath="mydataset:/">
<selectionmanager name="selector" toggle="false"/>
<Mydisp datapath="MyImg" >
</class>
<class name="Mydisp" >
<Myimage stretches="both" width="${parent.width}" height="${parent.height}" datapath="Image/text()">
<method event="onload" >
loadIndicator.setVisible( false );
this.setWidth(this.resourcewidth/4);
this.setHeight(this.resourceheight/4);
</method>
</Myimage>
</class>
and i am displaying the images using,
<view >
<MyView />
</view>
and i am resizing and also changing the positions of the images in the view. But when i delete an (not latest) image, by deleting the node in the dataset,
the size and position of the other images changes to original size and position.This problem is occuring in the LPS2.1.1.But it was working fine with lps 1.0.2
Is there any solution for this?
Thanks in advance
Mallesh
I am displaying the images in a view by adding the nodes into the dataset.
like,
var dptr = canvas.mydataset.getPointer();
itemDptr = dptr.addNodeFromPointer(dpth);
<class name="MyView" datapath="mydataset:/">
<selectionmanager name="selector" toggle="false"/>
<Mydisp datapath="MyImg" >
</class>
<class name="Mydisp" >
<Myimage stretches="both" width="${parent.width}" height="${parent.height}" datapath="Image/text()">
<method event="onload" >
loadIndicator.setVisible( false );
this.setWidth(this.resourcewidth/4);
this.setHeight(this.resourceheight/4);
</method>
</Myimage>
</class>
and i am displaying the images using,
<view >
<MyView />
</view>
and i am resizing and also changing the positions of the images in the view. But when i delete an (not latest) image, by deleting the node in the dataset,
the size and position of the other images changes to original size and position.This problem is occuring in the LPS2.1.1.But it was working fine with lps 1.0.2
Is there any solution for this?
Thanks in advance
Mallesh