Drupal自动完成搜索UI错误

时间:2013-04-22 17:33:58

标签: search drupal autocomplete drupal-7

您好在Drupal 7我正在使用自动完成搜索。在搜索输入中,即使输入未被聚焦,它也始终显示ajax加载器动画的一部分。 Bug标有红色方块picture of bug

任何建议请为什么会有这个错误。 (我正在使用boostrap主题)

感谢您的帮助。

1 个答案:

答案 0 :(得分:0)

这不是Twitter引导程序错误。

查看drupal安装的misc/throbber.gif文件。您将看到它实际上是一个精灵,当ajax请求正在进行时,它会改变其位置以显示动画的悸动。

您需要创建一个新的并相应地调整CSS以解决此问题。您的文本字段的长度比此精灵的

将以下CSS添加到主题的css文件中。这些样式已经定义,因此您只需要覆盖它们。请参阅内联评论。

html.js input.form-autocomplete {
    background-image: url("/misc/throbber.gif"); // Enter a new thribber image here.
    background-position: 100% 2px;
    background-repeat: no-repeat;
}

html.js input.throbbing {
  background-position: 100% -18px; // Adjust this -18px to the height of your new throbber. 
}
相关问题