[Xerte] Constraining a movie

Kemp Johnathan johnathan.kemp at ntlworld.com
Wed Mar 7 17:22:23 GMT 2012


According to the Xerte reference constrain() is a method of the icon class,
so I would have expected it to be available to a movie icon.
However I noticed that in the code for the textVideo page the code uses

movie.setSize(800,434);

rather than

movie.constrain(800,434);

I tried using constrain as I wanted to ensure the movies aspect ratio was
not affected by a change of size and it appeared to have no effect.

Is constrain() not available as a method for movie icons?

Kind regards

Johnathan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20120307/b2034a76/attachment.html>


More information about the Xerte mailing list