drgullin / icheck

Highly customizable checkboxes and radio buttons (jQuery & Zepto)
http://fronteed.com/iCheck
7.38k stars 1.62k forks source link

iCheck v2.x problem with jumping page on click? #195

Closed Daijobou closed 10 years ago

Daijobou commented 10 years ago

Hello,

I click on checkbox and the page jump down. Have anyone this problem too? Its not on all pages with iCheck, but its only happen with iCheck is active.

EDIT: Problem is in IE10, FF, Chrome but in each browser with different scroll-height.

EDIT: Founded. The problem was (my) css style "bottom"

input[type=checkbox], input[type=radio] {
    bottom:2px;
}

after delete this line, all working fine. :)

or better, add position:relative to

.icheckbox, .iradio {
position:relative;

So I must not change my original css code.

khanfx commented 8 years ago

Just reporting that I experienced this too when using iCheck in a Bootstrap popup with scrolling, and confirming that Daijobou's fix worked. Make sure you reference the right class for your theme.

.icheckbox_square-red { position: relative; }