Skip to content

[Issue] Browser rendering stops working after resizing #425

@otrexdev

Description

@otrexdev

What platform are you experiencing this issue on?

Windows x64

What version of UWB are you using?

2.2.7

What Unity version are you running?

6000.1.13f

Describe what the issue you are experiencing is.

Sometimes after resizing the browser stops rendering. This is fixed by reloading the page but it's annoying as it resets the current page state.

Provide reproducible steps for this issue.

  1. Resizing using the following code snippet:
        Vector2 size = ((RectTransform)transform.parent).sizeDelta;
        size.y -= 85;
        size.x -= 2;
        browser.browserClient.Resolution = new Resolution((uint)size.x, (uint)size.y);

transform.parent refers to an Image object thats a parent object of the RawImage. The raw image anchors and pivot are set to expand with the parent with some offsets on the side that are substracted in the code,
2. The browser rendering stops

Any additional info you like to provide?

I'm willing to provide the entire project, but only if it's possible to send it to the dev of this browser directly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    issueSomething is broken

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions