Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Custom widget position doesn't work #1321

Closed
mabeyj opened this issue Mar 2, 2025 · 0 comments
Closed

Custom widget position doesn't work #1321

mabeyj opened this issue Mar 2, 2025 · 0 comments

Comments

@mabeyj
Copy link

mabeyj commented Mar 2, 2025

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

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant