On some pages which set the body to fixed position the hint labels where
placed far away from the hinted element. This patch fixes this issue by
setting the position of the label to fixed instead of absolute.
This fixes #506.
margin:0;
opacity:0.7;
padding:0px 1px;
- position:absolute;
+ position:fixed !important;
z-index:225000
}
*[vimbhint^='hint']{
-*
-!*.c
-!Makefile
+/test-*
--- /dev/null
+<!DOCTYPE html>
+<html>
+<head>
+ <style type="text/css">
+ body {
+ position: absolute;
+ left: 50%;
+ width: 500px;
+ margin-left: -250px;
+ }
+ </style>
+ <title>Hint Label on pages with absolute positioned body</title>
+</head>
+<body>
+ <p>
+ When using hints (f) on this page, the hint should be placed on
+ the upper left corner of the links.
+ <a href="#one">one</a><br/>
+ <a href="#two">two</a>
+ </p>
+</body>
+</html>