Made the dropdown menu positioned via pure css instead of using
javascript to constantly adjust its position. YAY PERFORMANCE!
Signed-off-by: Igor Vaynberg <igor.vaynberg@gmail.com>
- Remove absolute positioning from search input, and use inline-block with width 100% and padding.
- Remove hardcoded search results margin (space is consumed by non-absolute, inline-block search wrapper)
- Will not work with styles specified in remote CSS, because there's no easy way to retrieve the original css value.
- Will work with styles specified inline on the element (regex parse out width value with specified units intact, from the element style attribute)
Tested in Firefox,Chrome,Safari,Opera