Skip to content

Commit

Permalink
Swap the ordering of hiding breaks and showing hidden lines when expa…
Browse files Browse the repository at this point in the history
…nding.

This fixes a css rendering bug where a small gap appears in the margin because
a tr below a break maintains the height it rendered with when the break was
visible.
  • Loading branch information
cespare committed Sep 13, 2011
1 parent f1b7876 commit 0433678
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/commit.coffee
Expand Up @@ -212,8 +212,8 @@ window.Commit =
firstNonChunk = $(document).find(".diffLine").not(".chunk").filter(":first")
firstChunk = $(document).find(".diffLine.chunk:first")
if firstNonChunk.css("display") == "none"
$(".diffLine").not(".chunk").show()
$(".chunkBreak").hide()
$(".diffLine").not(".chunk").show()
window.scrollTo(0, firstChunk.offset().top)
else
$(".diffLine").not(".chunk").hide()
Expand Down

0 comments on commit 0433678

Please sign in to comment.