Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: increasing height during back to front transition



At 2:13 PM -0800 11/4/05, John Louch wrote:
> This message is a little long - feel free to just read the last paragraph.

I have a widget has a variable height on the front and a fixed height for the backside. When the front is taller than the back, I have a problem flipping the widget from back to front.

 It doesn't appear to be possible to increase the height of the widget
 before preparing or performing the transition from back to front.
 Because of this, the flip transition is not smooth at all. I see the
 first half of the back to front transition animation then the front
 suddenly appears.

 The work-around to this problem is to use the same height for the
 front and the backside whenever the front is taller than the back.
 This is the approach that the Stocks widget takes. The purpose of the
 resizedWhenFlippedOver boolean in Stocks.js is to remember when the
 front is shorter than the back otherwise the height of the backside
 is not resized during front to back transitions. This can be verified
 by doing the following:
   - use seven or more stock symbols.
   - flip the Stocks to its backside.
   - mouse down on the widget and deactivate the dashboard to bring the
 widget to the desktop (you need to have debugmode turned on).
 - Capture the window using Grab.
 Notice that the height of the backside graphic equals the height of
 the front side.

 The reason that I don't want to use this work-around is because I
 need to have backside elements that are offset from the bottom of the
 widget not the top.

 > Is it possible to increase the height of the widget during back to
 > front transition and have smooth animation of the flip? The fact that
 the Stocks widget uses a special case to avoid that scenario suggests
 that this is not possible. Does anyone know otherwise? If not, I can
 file a bug report.

Chuck

Yes look at the weather widget. It increases the size on flip.

Thanks,
jl

Thanks for your fast response. I was speaking of back to front transition. The weather widget only increases the height of the widget during front to back transition. The front of the weather widget is never taller than the back (so increasing the height from back to front won't happen).


Chuck
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Dashboard-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/dashboard-dev/email@hidden

This email sent to email@hidden
References: 
 >Re: increasing height during back to front transition (From: John Louch <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.