GWT:如何捕获哪些代码覆盖 CSS 光标值。或者为什么它会覆盖?
我的 UI 中有 ScrollPanel
。当用户执行某些特殊操作时,我想动态更改此面板上的光标。但是,在代码中的某个位置(我尝试在项目中的所有文件(包括 CSS 和 Java)中搜索 "default"
(带或不带引号),我也搜索过 < code>Cursor.DEFAULT 提到 - 没有这样的行将其更改为默认值)它定期更改为该面板的默认值,就在元素的样式中。这就是为什么即使使用 !important
覆盖也不起作用。所以我认为在这种情况下应该归咎于 GWT。
我在寻找原因时是否错误,或者我可以以某种方式调试光标的具体变化,还是应该归咎于CSS(条件断点与Style.setCursor()
匹配太多次,再次它可以使用 setAttribute
进行更改)。
我可以更改内部 div 的光标,但这将是一个 Hack。
I have ScrollPanel
in UI. And I want to dynamically change cursor over this panel when user does something special. However, somewhere in the code (I have tried searching for "default"
(with or without quotes) over all the files (including CSS and Java) in the project, also I 've searched over for Cursor.DEFAULT
mentions — no such line that changes it to default one) it is periodically changed to DEFAULT value for this panel, right in the element's style. That's why even overriding with !important
doesn't works. So I think to blame GWT in this case.
Am I wrong in searching for the reason or can I somehow debug this concrete change of the cursor, or it is the CSS to blame (conditional breakpoint matches too much times for Style.setCursor()
, again it can be changed with setAttribute
).
I can change cursor for the inner div, but it will be a Hack.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我已经找到了发生这种情况的原因,当然这是我的代码中的错误(我在搜索中找到了它,但认为这不是原因)。然而,监控谁动态改变CSS属性的方法可能是重要的事情
I've found the reason it happened, of course it was a fault in my code (I found it in search but thought that it is not the reason). However, the way to monitor who changes the CSS properties dynamically may be the important thing