-
Notifications
You must be signed in to change notification settings - Fork 443
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
8314683: TextArea: scroll bar size and content padding #1469
base: master
Are you sure you want to change the base?
8314683: TextArea: scroll bar size and content padding #1469
Conversation
👋 Welcome back angorya! A progress list of the required criteria for merging this PR into |
❗ This change is not yet ready to be integrated. |
This PR presupposes that the scroll bar size and content padding should be changed to be independent of the font size. Since the current choice was a deliberate decision, the issue should be changed to an Enhancement, and we need to consider the possible drawbacks of such a change. /reviewers 2 reviewers |
@andy-goryachev-oracle Wait for me to review this. |
@kevinrushforth |
I disagree. The size of the UI elements enveloping a content area should not depend on the font size of the font used in that particular content area. It should depend on the base font size, yes - i.e. it should scale with the scaling of the base font. BTW, no other Control exhibits this behavior, as far as I know. |
If I understand what you are saying, this change will make the size of the scroll bars and content padding be relative to the size of the root? In that case, yes this seems like a Bug (so no need to change the issue type). Can you update the issue title (in JBS and in this PR) to make this more clear? |
I must clarify: ideally, the size of all the UI elements should depend on the base font size, but currently does not (and I don't know exactly how to make it so). And apparently I am wrong about saying that only TextArea has the issue. Here is a screenshot of an app with the root font size set at 50%, and combo box at 200%: It does not look right either, the UI elements should not get scaled in my opinion, only the text. I'd rather have a consistent size of UI elements in an application. |
This will need further discussion. |
I agree. Back to Draft. |
Changing certain ScrollBar, ScrollPane, and TextArea sizes from
em
topx
in modena.css to make them independent of the font size in that control.After the change, the UI still looks good which can be tested by scaling default font size in a fairly wide range:
Using CSS Playground tool in the Monkey Tester at 50% and 200% font size:
Progress
Issue
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jfx.git pull/1469/head:pull/1469
$ git checkout pull/1469
Update a local copy of the PR:
$ git checkout pull/1469
$ git pull https://git.openjdk.org/jfx.git pull/1469/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 1469
View PR using the GUI difftool:
$ git pr show -t 1469
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jfx/pull/1469.diff
Webrev
Link to Webrev Comment