Skip to content

Custom widget position doesn't work #5530

@mabeyj

Description

@mabeyj

Description

Custom widgets in the right pane seem to be ignoring their position, causing them to be in an unexpected order. (Not sure if this is also the case with the left and center panes.)

According to the docs, a widget's position can be set like this:

class CustomWidget extends api.RightPanelWidget {
    get position() { return 1; }
}

This was working in 0.90.12. After upgrading to 0.91.6 and then 0.92.2, my custom widgets aren't in their correct order anymore.

However, if I assign the position like this, then the custom position is respected again:

class CustomWidget extends api.RightPanelWidget {
    position = 1;
}

TriliumNext Version

0.91.6 and 0.92.2-beta

What operating system are you using?

Windows

What is your setup?

Local + server sync

Operating System Version

Windows 10

Error logs

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions