开发者

jQuery Chosen breaks in firefox

What's wrong with firefox's calculations while using the Chosen plugin? Other browsers work well.

Example. Be patient, it开发者_高级运维 takes some time to load the less stylesheets (not precompiled while testing).


What's wrong with firefox's calculations while using the Chosen plugin?

Calculation of the border/padding of the search field is wrong. In particular, this line:

sf_width = dd_width - get_side_border_padding(this.search_container) - get_side_border_padding(this.search_field)

In Chrome dd_width is 98 and the resulting sf_width value is 63. In Firefox dd_width is 100 and the resulting sf_width is 94. Given that after the page loads I get 8 for get_side_border_padding(this.search_container) and 27 for get_side_border_padding(this.search_field) I would guess that the calculation of the padding is done too early, most likely before the CSS file loaded. Probably making some assumptions about the load order that are true in Chrome but not in Firefox.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜