Quoting Philip Meyer <[EMAIL PROTECTED]>:

> >I thought about this some more, and knocked up a quick little test.  After
> loading an image, examine the image width and if it's over some max size,
> scale the image down:
> I forgot to add that we need to decide what size to constrain to.  I found
> that changing the width in pixels changes the height to keep the same aspect
> ratio.  It's probably possible to find the width in pixels of the frame, and
> change the size of the image to be 50% of that, rather than using a maximum
> fixed width in pixels.

That's the trick.  I know you can read the params for document.body, but that
only works for IE. I was trying to use a similar trick for setting the current
playlist start position, since it varies based on the height of the
status_header section (cover art vs no cover art).  My other option is to lock
the status_header height by using the "no cover" image, but then that takes
away the choice of having no cover art and gaining those extra playlist lines.

I'll use the fixed resize for now. 300 was the old contraint, so I'll just use
that for max size.


Thanks!

-kdf
_______________________________________________
beta mailing list
[email protected]
http://lists.slimdevices.com/lists/listinfo/beta

Reply via email to