We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.

nikpetrov

Forum Replies Created

Viewing 1 post (of 1 total)
  • Author
    Posts
  • in reply to: custom annotation is 'floating' #20314
    nikpetrov
    Participant

    Hi Yuri and hi everyone,

    I’m glad to say I found a solution by myself… I added some new css here in index.html,
    it was:

    <div id="b1" onclick="b1changeColor()" >
    <div id="b1Text" style="display:none; padding-top:36%;">
    battery
    </div>
    </div>

    NOW:

    <div id="b1"style="position: absolute; cursor: pointer; user-select: none" onclick="b1changeColor()" >
    <div id="b1Text" style="display:none; padding-top:36%;">
    battery
    </div>
    </div>

    In other words, I added position: absolute to the annotation div. Hope it helps someone. Cheers – N

Viewing 1 post (of 1 total)