Skip to content

Opening in Dialog does not scale correct #66

@1Map

Description

@1Map

I have my pdf viewer inside a PrimeVue 4 Dialog.

When I open the dialog at first my pdf does not scale correct.

After I resize the browser (Or mazimize my dialog), then it shows correct. I think you guys are using a ResizeObserver.

I can also say, I did got it to work by having a v-if with a delay in my dialog (To give the dialog some time to render before showing the pdf component). This will make sure when your ResizeObserver fires, the dialog is already rendered to size and not animating.

Can also say, this used to work without my hack before (Must have come in with your last couple of updates).

See 2 Images of the current problem

Wrong

Image

Correct

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions