5

Not sure how butt-burningly important this is but I've noticed that if you click on a linked answer such as mine then the Stack Snippeted answers above the linked answer end up pushing the linked answer out of focus/sight.

I know that the linked answer is briefly highlighted but that can easily be missed if one gets distracted.

I am using Windows 7 x64 FireFox x64 57.0.4

Just wondering about the possibilities of an elegant solution.

Maybe something like:

if(
    every time a stack-snippet has loaded &&
    user has linked answer within viewport
){
    // Keep answer within viewport auto-magically
}
else{
    // Do nothing I guess?
}
11
  • 1
    Do you mean when navigating to that link the stack snippet in the answer above it pushes the linked answer downwards rather than the linked answer being in line with the top of the screen? If so, I couldn't replicate this in any way using Chrome 63.0.3239.132 Commented Jan 17, 2018 at 9:46
  • please provide your setup: OS browser etc... as I can't see any issues on Win10 Chrome latest either.
    – Tanner
    Commented Jan 17, 2018 at 10:55
  • 1
    Seems to be only an issue in Firefox, replicated with Firefox ESR 52.5.3 (64-Bit) (Win10).
    – user8097737
    Commented Jan 17, 2018 at 10:55
  • @NickA I've added my OS and browser info. Seems to only be a FireFox issue. Additionally, your re-phrasing of the problem is correct.
    – MonkeyZeus
    Commented Jan 17, 2018 at 13:33
  • @Tanner I've added the info.
    – MonkeyZeus
    Commented Jan 17, 2018 at 13:34
  • "Just wondering about the possibilities of an elegant solution." Enter scroll anchoring.
    – BoltClock Mod
    Commented Jan 17, 2018 at 15:05
  • @BoltClock Exciting. Can us mere mortals use it?
    – MonkeyZeus
    Commented Jan 17, 2018 at 15:57
  • Unable to replicate, Windows 10, Chrome 63.0.3239.132.
    – AStopher
    Commented Jan 17, 2018 at 16:56
  • @cybermonkey Thanks, try FireFox.
    – MonkeyZeus
    Commented Jan 17, 2018 at 17:03
  • Firefox 57.0.4 on Win 10 has the snippets push the linked answer down, then a second later, the orange "this is where you were linked" flash happens, and Firefox recenters on the question (as expected/desired). The flickering is annoying, but I do end up where I want to go. Commented Jan 17, 2018 at 21:26

0

You must log in to answer this question.

Browse other questions tagged .