Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

There are errors when we resize window and if the container id is not "blazorview3d" #28

Open
shivaramkrs opened this issue Aug 5, 2023 · 3 comments

Comments

@shivaramkrs
Copy link

I have used a different id name for the Blazor3D Viewer. When I resize the window I get errors.

image
@simutaroman
Copy link
Collaborator

simutaroman commented Aug 5, 2023

It's very strange
Example1 also has a different containerId. And resizing works as expected.
https://homaggroup.github.io/Blazor3D/example01
https://github.com/HomagGroup/Blazor3D/blob/main/Examples/Blazor3D.Examples.WebAsm/Pages/Example01.razor

 private ViewerSettings settings = new ViewerSettings()
        {
            ContainerId = "example1",
            CanSelect = true,// default is false
            SelectedColor = "yellow",
            ShowViewHelper = false,//default is true
            WebGLRendererSettings = new WebGLRendererSettings
            {
                Antialias = false // if you need poor quality for some reasons
            }
        };

what is lockdown-install.js?

@shivaramkrs
Copy link
Author

lockdown-install.js is not part of my project. I can only see it in the browser. Strange that you don't get the error with the custom id. Can you expose the "id" and "style" of the canvas?

@simutaroman
Copy link
Collaborator

what do you mean "expose"?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants