airsdk / Adobe-Runtime-Support

Report, track and discuss issues in Adobe AIR. Monitored by Adobe - and HARMAN - and maintained by the AIR community.
203 stars 11 forks source link

Cannot set global style on spark button in AIR 33.1.1.190 #433

Open PhilCase opened 4 years ago

PhilCase commented 4 years ago

Problem Description

I'm using AIR 33.1.1.190 and IntelliJ IDEA.

Buttons that should have a style set on them render no button (white button) and white text on iOS. I believe the issue is on Android too - but it's less evident.

I've been using a stylesheet to define a style for s|Button. Previously this worked.

I noted that buttons that don't use the default button style display correctly.

Steps to Reproduce

create a style sheet for the app. include

@namespace s "library://ns.adobe.com/flex/spark";
s|Button { chromeColor: #494949; color: #FAFAFA; skinClass: ClassReference("skins.MSLButtonSkin"); }

Create an app on iOS. Do not assign any style to the buttons. The default style should be applied (and is applied in earlier versions of the SDK).

The button style is not applied.

Known Workarounds

Define styleName explicitly on the button.

PhilCase commented 4 years ago

I believe I have this same issue with the View object too. My iOS app is not sizing itself correctly any more.