diff --git a/website/assets/images/3dviewer_net_start_page.png b/website/assets/images/3dviewer_net_start_page.png index b884a7e..973e0c3 100644 Binary files a/website/assets/images/3dviewer_net_start_page.png and b/website/assets/images/3dviewer_net_start_page.png differ diff --git a/website/o3dv/website.js b/website/o3dv/website.js index 1c37558..8f6f126 100644 --- a/website/o3dv/website.js +++ b/website/o3dv/website.js @@ -21,6 +21,7 @@ OV.Website = class Load () { + let canvas = $('').appendTo (this.parameters.viewerDiv); this.viewer.Init (canvas.get (0)); this.ShowViewer (false); @@ -63,6 +64,7 @@ OV.Website = class let contentWidth = windowWidth - navigatorWidth - sidebarWidth - safetyMargin; let contentHeight = windowHeight - headerHeight - safetyMargin; + this.parameters.navigatorDiv.outerHeight (contentHeight, true); this.parameters.sidebarDiv.outerHeight (contentHeight, true); this.parameters.introDiv.outerHeight (contentHeight, true); @@ -85,7 +87,6 @@ OV.Website = class { this.sidebar.Show (show); this.cookieHandler.SetBoolVal ('ov_show_sidebar', show); - this.Resize (); } ClearModel () @@ -332,6 +333,7 @@ OV.Website = class } AddRightButton (this.toolbar, 'details', 'Details panel', true, function () { obj.ShowSidebar (!obj.sidebar.IsVisible ()); + obj.Resize (); }); this.parameters.fileInput.on ('change', function (ev) { @@ -388,6 +390,7 @@ OV.Website = class this.sidebar.Init ({ onClose : function () { obj.ShowSidebar (false); + obj.Resize (); } }); let show = this.cookieHandler.GetBoolVal ('ov_show_sidebar', true);