cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Change size of widget Javascript

SOLVED
Moonstone

Change size of widget Javascript

 I wanted to know if there was a way to change the Height or Width of a 3d widget (eg Image3D) BY JAVASCRIPT.
I TRIED TO USE THE SYNTAX :
 
$ scope.size = function () {
 
$ scope.view.wdg ['3DImage-1']. height = 2;
};
 
 BUT NOT WORKING:
 
thnx 
 
Giuseppe
 
 
 
1 ACCEPTED SOLUTION

Accepted Solutions

Re: Change size of widget Javascript

Hi Giuseppe,

Width and height are not currently dynamic properties. They cannot be changed after the image has been added to the scene. The closest equivalent you can use for this is 'scale' property.

View solution in original post

1 REPLY 1

Re: Change size of widget Javascript

Hi Giuseppe,

Width and height are not currently dynamic properties. They cannot be changed after the image has been added to the scene. The closest equivalent you can use for this is 'scale' property.

View solution in original post