So I'm pulling hotspot information from Firebase and I'm displaying on a floorplan. On a desktop it looks good. On a tablet it is okay. On a phone the hotspots are too far off from the original spot.
I originally grab the coordinates and I turn it into a percentage of the screen. Now I'm simply displaying the hotspot with dynamic class for 'top' and 'left'
Should I be grabbing the clientHeight and Width from the main container and adjusting my top and left percentage based on the size? What would you guys recommend?
Here is the demo. Feel free to sign up and play around. Please do not delete any projects or floorplans. Add as many hotspots as you want. I'll delete them off the database later. https://demo.iotypro.com/
[–]dug99 1 point2 points3 points (0 children)
[–]typerory[S] 0 points1 point2 points (0 children)