Skip to content

How to scroll to edit panels when opening them? #1570

@giannicolac

Description

@giannicolac

Description:

Hello. I have a question. Is it possible to make the window scroll to the editPanel when it is opened. I know of the onOpenFieldEdit, and have tried using it for this, trying the following with no luck:

onOpenFieldEdit: function(editPanel) { editPanel.scrollIntoView },
This code does nothing at all. And i presume it could be because of the time it takes for the editPanel to open? I have no idea.

Environment Details:

  • formBuilder Version: 3.19.7
  • Browser: Firefox
  • OS: Linux Mint

Expected Behavior

I would expect the scrollIntoView method to make the editPanel be in view.

Actual Behavior

Nothing

Steps to Reproduce

onOpenFieldEdit: function(editPanel) { editPanel.scrollIntoView },

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