Flex 错误皮肤未正确绘制
我真的希望有人可以帮助我解决这个问题。我花了几天时间为一些自定义文本输入实现了一个看起来不错的错误皮肤,但我遇到了验证结果位图的测量问题。
我将 Flex 默认错误皮肤复制到我自己的类中,只是将 GlowFilter 调整为“内部”并进行了一些颜色更改。
将焦点皮肤设置为 NULL 是为了删除该样式,因为验证会将其变为红色并将其应用到其他所有内容之上。
<view:PromptedTextInput id="inputCompanyName"
width="100%" height="35"
focusSkin="{null}"
styleName="promptedTextInput"
errorSkin="com.verical.common.skins.InnerGlowErrorSkin"
prompt="company name (optional)"
skinClass="com.verical.checkout.view.skins.PromptedUserInputSkin" />
这是我有时会看到随机发生的情况。
I really hope there is someone that can help me out on this one. It took me days to implement a decent looking error skin for some custom text inputs but I am running into what seems to be a measuring issue with the resulting bitmap from validating.
I duplicated the Flex default error skin into my own class and just adjusted the GlowFilter to be "inner" and some color changes.
Setting the focus skin to NULL was an attempt to remove that styling since validation turns that thing red and applies it on top of everything else.
<view:PromptedTextInput id="inputCompanyName"
width="100%" height="35"
focusSkin="{null}"
styleName="promptedTextInput"
errorSkin="com.verical.common.skins.InnerGlowErrorSkin"
prompt="company name (optional)"
skinClass="com.verical.checkout.view.skins.PromptedUserInputSkin" />
Here is what I sometimes see happen randomly.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论