Skip to main content

getFloatTrait problem

1 reply [Last post]
shydisturbedboy
Offline
Joined: 2007-09-29

svg = (SVGSVGElement)doc.getDocumentElement();

if(svg.getFloatTrait("width") >= svg.getFloatTrait("height"))
svg.setCurrentScale(getWidth() / svg.getFloatTrait("width"));
else
svg.setCurrentScale(getHeight() / svg.getFloatTrait("height"));

it works on emulator but not on the phone.. any ideas why?

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
janvalenta
Offline
Joined: 2006-12-05

Hi,

What actually doesn't work? Is there an exception thrown or the calls return some nonsense?

Jan