Jump to content

Resize window and viewport


Dad72
 Share

Recommended Posts

Thanks Adam. But It does not work with my scene. :(

If I resize the browser then the viewport no longer corresponds to the border of the mini map (Which is an html layer on the canvas)

I would like the window to remain fixed in size and position. I do not want the minimap to resize. I'm looking for an absolute layer position.

Link to comment
Share on other sites

I made a more complete PG to better see the problem when resizing the window.

The layer is no longer in place, it does not stay where it is, its dimension changes and should not.

I think there is either a bug or something missing to fixed it or it is (like the absolute position of the border image at the top.)

http://www.babylonjs-playground.com/#UCFKM#20

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...