Conversation
|
Hey @kzxtreme, Thanks for opening this pull-request! Unfortunately, it looks like it fails to pass the criteria neccessary for submitting to bootstrap. The following things are currently failing:
For a full list of issue filing guidelines, please refer to the bootstrap issue filing guidelines. thanks! |
|
Guys I want to help, but I'm fairy new in git. So I don't know what the methods are. I've download the code from https://github.com/twitter/bootstrap/zipball/master I did post something in the other thread 4647#issuecomment-9652919 but it the thread was closed. So I come to here. Replace this affix = this.unpin != null && (scrollTop + this.unpin <= position.top) ?
false : offsetBottom != null && (position.top + this.$element.height() >= scrollHeight - offsetBottom) ?
'bottom' : offsetTop != null && scrollTop <= offsetTop ?
'top' : falsewith these lines var before_y_bool = offsetTop != null && scrollTop < offsetTop
, inside_y_bool = scrollTop >= offsetTop && scrollTop <= scrollHeight-offsetBottom-this.$element.height()-(this.unpin != null ? this.unpin : 0)
, before_offset_bottom_bool = offsetBottom != null && (position.top + this.$element.height() <= scrollHeight - offsetBottom)
affix = before_y_bool ? 'top' : (inside_y_bool && before_offset_bottom_bool) ? false : 'bottom'The flickering cause by position.top. To make use of position.top, I make sure that within range of inside_y_bool. Now I can finally sleep, so tired. Have been working this fix 4 long days. |
|
Closing out for now—this issue should be resolved already. |
|
@mdo I'm currently running in to this problem and the fix given by @HariantoAtWork works like a charm. |
|
@boekkooi This makes two of us.. |
|
be 3, thanks! |
|
The fix given by @HariantoAtWork works like a charm! Thanks! |
|
If this is still a problem, I'd suggest opening a new issue. Just be sure to check whether v3 already fixes it or not. |
Patch for:
#4647