Hi,

I've got some popups that I'm literally "popping up" (VH1 pop-up video
style, for those that remember it) and to get the effect I simply
applied the ZoomEffect to them. The result is basically right, but
depending on what's in the popup I'm detecting some weirdness. Here's
what I see:

As the object zooms up or down, some objects scale while others just
change size. At first, I thought it was just text-based stuff, so I
switched to an embedded font and that helped quite a bit. But then I
noticed some text areas and labels were actually truncating text as
the popup was shrinking. I tried disabling autolayout, but that just
resulted in getting some scrollbars in some unwanted places...

So... my guess is that many of the UI components are doing stuff based
on unscaledWidth and unscaledHeight and essentially "thinking to hard"
about how to draw themselves. My expectation would be that I could use
the Zoom effect to shrink something to 50% and it would look identical
to the 100% with everything half the size. In reality, its more like I
went in and manually adjusted the size of everything by 50% (width=200
to width=100, etc.)., which is not the same thing (at least, not in my
graphics book).

What I'm thinking is that I'm going to have to do a manual effect
where I render the popup at 100%, capture it into a bitmap, zoom that
bitmap and swap the bitmap for the real thing when its at 100%. Anyone
tackled this issue before? Am I missing something?

Troy.

Reply via email to