Right now my hoverover popup is 50vh in height. this is great if the link leads to a big note. however, i have some smaller notes that do not require that kind of screen size. I wondered if it was possible to have the popup adjust its screen size to the note that pops up, i.e.
if the note is bigger than 50vh → let hoverover popup window be 50vh
if the note is smaller than 50vh → let hoverover popup window be as big as it has to be for the note to fit
Thank you for your answer. Your solution seems to work, however it also seems to have a negative side effect on where the popup windows open. If the link way down the page, the popup window always opens under the link, i.e. it opens under the screen (see image). do you know what causes that?