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

Overlay resize not fully working #467

Open
sponce opened this issue Jun 29, 2022 · 6 comments
Open

Overlay resize not fully working #467

sponce opened this issue Jun 29, 2022 · 6 comments

Comments

@sponce
Copy link
Collaborator

sponce commented Jun 29, 2022

When using an overlay and resizing the window of the overlay, the window resizes but not the image inside the windows, so the windows is half empty

@9inpachi
Copy link
Collaborator

You mean like this?

image

It was implemented a long time ago. If I remember correctly, there were some issues with the renderer not able to change size at run-time or something like that. And not being able to change the aspect ratio skews the overlay view.

@Somya-Bansal159
Copy link
Collaborator

Can I work on this issue if it has not been assigned to anyone?

@9inpachi
Copy link
Collaborator

9inpachi commented Mar 1, 2023

Sure, go ahead.

@Somya-Bansal159
Copy link
Collaborator

The portion of the display which is to be displayed in the overlay is fixed (shown by a black rectangle in the image below) and on resizing the window, the same overlay view is getting resized keeping the aspect ratio fixed. So if I resize the overlay window, then there are two possibilities:

  1. Extra portion from the event display (red rectangle) gets added in the overlay.
    this
  2. The view which is already there gets resized by changing its aspect ratio (i.e. gets squeezed) in order to fill the overlay window.
    that

I am able to achieve the second one as of now.
So, which one should I try to implement?

@9inpachi
Copy link
Collaborator

9inpachi commented Mar 5, 2023 via email

@Somya-Bansal159
Copy link
Collaborator

Somya-Bansal159 commented Mar 5, 2023

I have added a boolean attribute in the overlay component, which is passed as true in case of the overlay-view component, else its default value is false. So, while resizing, this boolean value is checked, and if it is true (which means we are currently dealing with an overlay-view component), then the aspect ratio is locked. So, it is working on my side.

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

3 participants