visual-tools / tm-globe

GNU Lesser General Public License v3.0
0 stars 0 forks source link

Video to fit video display box #27

Closed johnkellas closed 6 years ago

johnkellas commented 7 years ago

Currently the video widget is larger that the display window - ideally the view port of the video would fit within the main viewbox without needing to scroll

christopherreay commented 7 years ago

this is an html issue, and the height/width is hard coded intot he iframe source. so... we should probabaly DRY that into something that works

Be VERY aware, that the CESIUM code, reads the source of the HTML and builds the container box from the raw HTML of the content... so... using style tags or css files to set the size, will not work. Best way is to use javascript to calculate the size, and then hard code it into the inserted html

TapdancingRodent commented 7 years ago

This is the kind of JS wizardry that I never quite got my head around so I'll leave this to you, Chris.

christopherreay commented 7 years ago

lol. Just set it to width 100% :) no wizardry needed.

For the height the size has to be set in the html code and then Cesium calculates the size of the infobox by adding the heights of all the components together. A bit odd, but there it is