Flex 错误皮肤未正确绘制

发布于 2024-10-27 12:50:48 字数 724 浏览 8 评论 0原文

我真的希望有人可以帮助我解决这个问题。我花了几天时间为一些自定义文本输入实现了一个看起来不错的错误皮肤,但我遇到了验证结果位图的测量问题。

我将 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.

enter image description here

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文