Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Broken editor children widths after disabling noteTabs plugin #4864

Closed
banan314 opened this issue Apr 20, 2021 · 9 comments · Fixed by #4991
Closed

Broken editor children widths after disabling noteTabs plugin #4864

banan314 opened this issue Apr 20, 2021 · 9 comments · Fixed by #4991
Labels
bug It's a bug desktop All desktop platforms

Comments

@banan314
Copy link

After disabling Note Tabs plugin, the application layout is broken. In settings.json, a child is not removed:

{
	"$schema": "https://joplinapp.org/schema/settings.json",
	"locale": "en_GB",
	"markdown.plugin.softbreaks": false,
	"markdown.plugin.typographer": true,
	"noteVisiblePanes": [
		"editor",
		"viewer"
	],
	"revisionService.ttlDays": 50,
	"newNoteFocus": "title",
	"markdown.plugin.deflist": true,
	"markdown.plugin.abbr": true,
	"markdown.plugin.multitable": true,
	"style.editor.fontSize": 13,
	"sync.interval": 3600,
	"sync.target": 7,
	"clipperServer.autoStart": true,
	"windowContentZoomFactor": 90,
	"autoUpdateEnabled": false,
	"notes.sortOrder.field": "order",
	"editor.codeView": true,
	"notes.sortOrder.reverse": false,
	"spellChecker.language": "pl",
	"ui.layout": {
		"key": "root",
		"children": [
			{
				"key": "sideBar",
				"width": 246,
				"visible": true
			},
			{
				"key": "noteList",
				"width": 169,
				"visible": true
			},
			{
				"key": "editor",
				"visible": true,
				"width": 1987
			},
			{
				"key": "plugin-view-joplin.plugin.note.tabs-note.tabs.panel",
				"context": {
					"pluginId": "joplin.plugin.note.tabs"
				},
				"visible": false
			}
		],
		"visible": true
	},
}

which results in the following broken layout:
image

The viewer is wider than the editor.

Also, there is not button for WYSIWYG.
image

Environment

Joplin version: 1.8.1, prod, sync 2, profile 34
Platform: Windows
OS specifics: Windows 10

Steps to reproduce

  1. Install Note Tabs plugin and enable it
  2. use it, tweak its options
  3. disable Note Tabs plugin

Describe what you expected to happen

Everything should go back to normal. The viewer should be as wide as the editor.

@banan314 banan314 added the bug It's a bug label Apr 20, 2021
@roman-r-m
Copy link
Collaborator

I suspect it might be fixed by #4865

@banan314
Copy link
Author

banan314 commented May 18, 2021

@roman-r-m
It's still broken in 1.8.5, Linux Mint this time

When I move the Joplin window from a wide monitor (2560x1440) to a narrower one (1920x1080), the side panel of noteTabs hides.

@roman-r-m
Copy link
Collaborator

Ok, thanks for checking. Looks like a separate issue then.

@roman-r-m roman-r-m added the desktop All desktop platforms label May 18, 2021
@banan314
Copy link
Author

Wide:
image
Narrow:
image
From left to right: notebooks, notes, editor, viewer (only part on the narrow monitor), noteTabs (not visible on the narrow monitor).
I cannot upload a video because there is too much private data.

@banan314
Copy link
Author

But this time I haven't disabled noteTabs, maybe this issue should be closed and a new one opened?

@mablin7
Copy link
Contributor

mablin7 commented May 18, 2021

After disabling note tabs everything worked fine for me, I'm pretty sure my PR fixed the original issue.

When I move the Joplin window from a wide monitor (2560x1440) to a narrower one (1920x1080), the side panel of noteTabs hides.

I think that's a different unrelated issue of Joplin not updating the width of panes when the window size suddenly changes after moving between screens. Do you see this problem if you resize the Joplin window on the same screen? For me that way there was no issue. It also seems to be unrelated to the plugin, part of the note editor can overflow the edge of the window too.

Did you move the window with a keyboard shortcut? Just asking because I'm using a tiled window manager and I can only move windows between screens with keyboard shortcuts and I'm thinking maybe the way that the wm quickly changes the window size has something to do with this issue.

As a side note, is this how the note tabs plugin is supposed to look? I've never used it. Just wondering if there's a separate issue with that as well.
image

@banan314
Copy link
Author

@mablin7

Do you see this problem if you resize the Joplin window on the same screen?

Yes.

Did you move the window with a keyboard shortcut?

Doesn't matter now, but initially I probably did. I'm using Cinnamon DM, but I also have a shortcut for moving a window from one monitor to another
image

is this how the note tabs plugin is supposed to look?

Yes.

It's my settings for note tabs:
image
image

@mablin7
Copy link
Contributor

mablin7 commented May 19, 2021

Hey thanks for the answers! I've been looking into this today, and it turns out the problem is not what I initially thought it to be, since it's not just related to window resizing.

It seems to me that Joplin doesn't have a set maximum size for the panes, so if the sum of their widths is greater than the window, they'll just overflow. I've been working on a solution, though there are still a few kinks to iron out. I'll make a PR as soon as it's ready.

@banan314
Copy link
Author

banan314 commented Jun 2, 2021

fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug It's a bug desktop All desktop platforms
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants