Skip to content

Instantly share code, notes, and snippets.

@poochin
Created January 13, 2011 15:46
Show Gist options
  • Save poochin/778072 to your computer and use it in GitHub Desktop.
Save poochin/778072 to your computer and use it in GitHub Desktop.
twttr.app.currentPage().repositionDetailsPane = function () {
if (!twttr.decider.goodAtCss()) {
return
}
var B = $('.details-pane-outer', this); // this.$find(".details-pane-outer");
if (this.windowHasHorizontalScroll()) {
var C = twttr.$win.scrollTop();
B.addClass("tracking-vertically");
B.css({
"margin-top": C,
top: 0
})
} else {
var E = $("#page-outer");
var D = parseInt(E.css("padding-top"), 10);
B.removeClass("tracking-vertically");
B.css({
"margin-top": null,
top: D
})
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment