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

about panel needs a vertical scrollbar if the async plugin update notification appears #4877

Merged
merged 1 commit into from
Oct 30, 2022

Conversation

mbien
Copy link
Member

@mbien mbien commented Oct 28, 2022

fixes #4876

we can't add it right away, otherwise the window can't layout itself without hardcoding the size of the scrollpane. Changing window size once its visible would look weird.

targets delivery

notification appears.

we can't add it right away, otherwise the window can't layout itself.
@mbien mbien added Platform [ci] enable platform tests (platform/*) UI User Interface labels Oct 28, 2022
@mbien mbien added this to the NB16 milestone Oct 28, 2022
@mbien mbien linked an issue Oct 28, 2022 that may be closed by this pull request
@mbien
Copy link
Member Author

mbien commented Oct 28, 2022

@neilcsmith-net this is a minor low risk bug fix for delivery.

sb

enables the scrollbar if the "Updates:" text appears.

@neilcsmith-net
Copy link
Member

@mbien already seen and on the radar. Looks good, makes sense. Thanks!

@@ -102,6 +103,7 @@ public ProductInformationPanel() {
final String updates = getUpdates();
SwingUtilities.invokeLater(() -> {
description.setText(LBL_description(getProductVersionValue(), getJavaValue(), getVMValue(), getOperatingSystemValue(), getEncodingValue(), getSystemLocaleValue(), getUserDirValue(), Places.getCacheDirectory().getAbsolutePath(), updates, FONT_SIZE, getJavaRuntime()));
descriptionScrollPane.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS); // will need a scrollbar now
Copy link
Contributor

Choose a reason for hiding this comment

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

It's not clear to me what now is referring to in the comment.

Copy link
Member Author

@mbien mbien Oct 30, 2022

Choose a reason for hiding this comment

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

the moment the description text is updated. Which is what the lambda does. So at the point in time this lambda runs. Now basically.

Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks, I was confused by the title ".... scrollbar if the async plugin update..." but it's a little more like
"... scrollbar in case the async plugin update...".

I had thought it might mean now that there are updates available.
So the scrollbar is there, even when there are no updates available.

@neilcsmith-net neilcsmith-net merged commit 965f7ea into apache:delivery Oct 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Platform [ci] enable platform tests (platform/*) UI User Interface
Projects
None yet
Development

Successfully merging this pull request may close these issues.

"Help > About" doesn't show cache directory
3 participants