Commit ee9b9e2f authored by Oleg Dzhimiev's avatar Oleg Dzhimiev

fixed x3dom canvas size problems when browser is not at 100% scale

parent 2beb976d
......@@ -98,6 +98,11 @@ X3DOMObject.prototype.resize = function(){
$(self.element).attr("width",w);
$(self.element).attr("height",h);
$(self.element).css({
width: w+"px",
height: h+"px"
});
$("#crosshair_h").css({
left: (w/2-$("#crosshair_h").width()/2)+"px",
top: (h/2)+"px"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment