Skip to content

Resize Sensor not working #2

@zenflow

Description

@zenflow

image

As you can see on the left side of the screenshot, resizing the width of the viewport is not properly accounted for.
As you can see on the right side of the screenshot, the element for the resize sensor has two attributes that weren't picked up as props by the vue3-resize-sensor component, and instead became fallthrough attributes, coerced into strings and applied to the component's root html element.

Problem is here:

props: {
initial: true,
},
on: {
resize: this.resize,
},

Not entirely sure but I think it's supposed to be something like this:

 initial: true, 
 onResize: this.resize, 

Versions

  • @jbtje/vue3pdf - 2.0.0
  • vue - 3.2.36
  • webpack - 5.72.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions