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

Fix editor freeze #2225

Merged
merged 1 commit into from
Nov 4, 2016
Merged

Fix editor freeze #2225

merged 1 commit into from
Nov 4, 2016

Conversation

chriba
Copy link
Contributor

@chriba chriba commented Nov 2, 2016

Possibly fixes: #2220.

Mainly I removed SwingUtilities.invokeLater(() ->. I also added some lines to remove the event listener from the old entry editors.

@koppor koppor mentioned this pull request Nov 2, 2016
@chriba chriba changed the title [WIP] Fix editor freeze Fix editor freeze Nov 2, 2016
@tobiasdiez tobiasdiez added the status: ready-for-review Pull Requests that are ready to be reviewed by the maintainers label Nov 3, 2016
Copy link
Member

@koppor koppor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Could you comment on the minimum editor height?

if (visName != null) {
entryEditor.setVisiblePanel(visName);
}
splitPane.setBottomComponent(entryEditor);

if (divLoc > 0) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this code appearing somewhere else? I remember, we had some issues with the minimum editor height (#1450 and #282). Does this code removal affect that, too?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The height of the editor (or preview) is handled by the BasePanel#adjustSplitter() method which just sets the saved height.

The height of the preview panel is saved in BasePanel#saveDividerLocation() without any maximum/minimum size adjustment. Currently the minimum size of the preview panel is 5px.

The entry editor height is saved in 3 places without any adjustments, but the minimum height of the editor is limited via the editor toolbar and the layout of the tabs (which depends on the entry type) .

@koppor koppor added this to the v3.7 milestone Nov 3, 2016
@koppor
Copy link
Member

koppor commented Nov 3, 2016

For @grimes2, this fixed the issue. My issue is also fixed.

@koppor koppor merged commit e1c1c9a into JabRef:master Nov 4, 2016
@chriba chriba deleted the fixEditorFreeze branch November 6, 2016 16:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: ready-for-review Pull Requests that are ready to be reviewed by the maintainers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Entry editor freeze
3 participants