On 2011-08-11 11:00:08.701 jasonsj commented:
Discussed a fix with Alex and Glenn to add a flag to initProtoChain to optionally disable owner style inheritance when the component is a pop up.
On 2011-08-11 16:32:57.878 jasonsj commented:
Opening to me
On 2011-08-12 11:30:11.971 jasonsj commented:
Glenn, Alex and I discussed 2 proposals.
#1 - Add a flag to StyleProtoChain.initProtoChain() that allows callout to disable inheriting styles from it's owner.
Instead, Callout will fallback to inheriting styles from the top level application. This 100% achieves the Application's default look for components inside a Callout by completely blocking inheritance from the owner. For example, if the owner had a fontFamily set on the owner (or inherited) they would have to add that style value again to Callout.
#2 - Duplicate default styles to Callout's type selector.
The idea here is to select a subset of inheriting styles to copy from the global selector into Callout. This achieves the default component look for Callout's contents without completely blocking style inheritance. The drawback here is if the owner had styles in it's inheritance chain that were far removed with respect to the Callout context, it would appear as a bug in Callout that a style value was set, but for an unknown reason.
Both proposals have implications on CSS inheritance. We've decided to go with #1 since effectively the workaround is to add styles when desired where as #2 requires the user to subtract styles that they don't want.
This change should be vetted with CAB along with some documented use cases.
On 2011-08-12 11:38:24.992 jasonsj commented:
Fixed in rev 21957.
Callout now inherits styles from the Application by default. To get normal style inheritance in callout:
override mx_internal initProtoChain()
{
StyleProtoChain.initProtoChain(this, true);
}
On 2011-08-21 13:00:46.013 kawatana commented:
confirmed fixed in 22126.
On 2011-08-24 13:26:20.783 kawatana commented:
regression tests
Adobe Bug URL: http://bugs.adobe.com/jira/browse/SDK-31139
Original Reporter: jasonsj
Original Resolution: Fixed
Confirmed Version: 11364
Confirmed Version: Next Build
Discoverability: High
Number of votes: 0
Regression: No
Reproducibility: Every Time
Resolved by: jasonsj
Severity: Usability Issue
reporter: jasonsj