pd4d10/octohint

Hint view is clipped

aerze opened this issue · 2 comments

aerze commented

First, awesome extension 🥇

I tested it by immediately browsing this same repo and the hint gets clipped by the code view.

You can reproduce by going to octohint/scripts/get-node-libs.js and hovering over fs.readFileSync

screen shot 2017-12-13 at 13 08 29

Fixable via position: absolute; on $background div. At least in chrome this works.

@ideadapt Thanks. Actually it is absolute at first. We change it to relative to fix #10.

I think it is better to calculate the height, then decide to show it up or down, to make sure it is not clipped.