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

Viewer window contents do not fit VSCode window #101

Open
MatthiasJ1 opened this issue Sep 21, 2024 · 2 comments
Open

Viewer window contents do not fit VSCode window #101

MatthiasJ1 opened this issue Sep 21, 2024 · 2 comments

Comments

@MatthiasJ1
Copy link

In the first image the XY plane grid extends past the white region.
In the second image I just scrolled to the right and the view moves off screen. The window is large enough to fit the whole view as additional spacing has been introduced to the toolbar.

Screenshot 1 Screenshot 2
@bernhard-42
Copy link
Owner

Note to myself:

<div id="cad_viewer" 
    style="margin-left: -20px;"
>

should solve the first issue.
The second one is more tricky. Needs more investigation

@bernhard-42
Copy link
Owner

I fixed issue 1 (the grid issue)
The second issue with the black gap at the end is a strange behaviour of VS Code. The minimum cad viewer width is currently 735 to ensure all buttons fit into the tool bar. But VS Code loves 850 as minimum width (no idea why and beyond my control). So this issue can't be fixed at the moment (and additionally, I do not think it is too critical)

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