Skip to content

fix: Fixed an issue with the JSON text editors caused by them being in scroll panes - #655

Merged
angelozerr merged 1 commit into
redhat-developer:mainfrom
SCWells72:json_text_editor_scrolling_fix
Dec 1, 2024
Merged

angelozerr merged 1 commit into
redhat-developer:mainfrom
SCWells72:json_text_editor_scrolling_fix

Conversation

@SCWells72

Copy link
Copy Markdown
Contributor

Those components have their own scrolling, and the nested scrolling mechanisms were causing issues with keyboard navigation, e.g., page up/down, etc., and other features such a Find (Ctrl+F). Without the surrounding scroll panes, it was also important that they be added so that they fill their available space vertically.

…oll panes. Those components have their own scrolling, and the nested scrolling mechanisms were causing issues with keyboard navigation, e.g., page up/down, etc., and other features such a Find (Ctrl+F). Without the surrounding scroll panes, it was also important that they be added so that they fill their available space vertically.
@angelozerr

angelozerr commented Dec 1, 2024 •

Copy link
Copy Markdown
Contributor

Please rename title of the issue with fix:

@SCWells72 SCWells72 changed the title fix - Fixed an issue with the JSON text editors caused by them being in scroll panes fix: Fixed an issue with the JSON text editors caused by them being in scroll panes Dec 1, 2024
@angelozerr
angelozerr merged commit 385e170 into redhat-developer:main Dec 1, 2024
@angelozerr angelozerr added the bug Something isn't working label Dec 1, 2024
@angelozerr angelozerr added this to the 0.8.1 milestone Dec 1, 2024
lagergren added a commit that referenced this pull request Nov 25, 2026
…e fonts and narrow widths, and scrolls when it doesn't fit

The page of a language server which is not user-defined, in the LSP
console and in the settings, named the language server in a TitledBorder.
At a large IDE font its tabs could overlap the title, and in a narrow LSP
console the title was clipped. Its tabs of fields didn't scroll, so a
field that didn't fit could only be reached by making the whole window
larger.

The header is now a JBLabel above the tabs, in the font of the IDE, so it
takes the height that font needs. It takes the width of the page and
shortens the name with an ellipsis when the page is narrower than the
name, with the whole name in its tooltip; its minimum width is 0, so the
name doesn't keep the LSP console's splitter, which honours minimum
sizes, from making the page narrower.

The tabs of fields, Server and Debug, are now in a borderless scroll pane
(ScrollPaneFactory), so they scroll when they don't fit. A tab whose
content fills it, the Configuration and Installer tabs with their JSON
editors and the Mappings tab with its tables, is not put in one: a JSON
editor scrolls itself, and a scroll pane around it breaks its keyboard
navigation (#655).

Fixes #374
Fixes #324
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants