RFR: 8211294: ScrollPane content is blurry with 125% scaling [v6]
Frederic Thevenet
fthevenet at openjdk.java.net
Mon Jan 4 17:44:02 UTC 2021
On Mon, 4 Jan 2021 17:04:41 GMT, Ambarish Rapte <arapte at openjdk.org> wrote:
>
>
> Apologies for delay on this review, Change looks good but I did observe an issue with layout of TabPane header area when the header is set to be shown on Left or Right side. The last tab-header's border seems to be clipped.
> Please check the code below. This is a very specific scenario, If tab's label is changed from "Tab" to "tab" then the issue does not occur. I did not observe any other such scenarios yet.
>
> ```
> import javafx.application.Application;
> import javafx.scene.Scene;
> import javafx.scene.control.TabPane;
> import javafx.scene.control.Tab;
> import javafx.stage.Stage;
> import javafx.geometry.Side;
>
> public class TabPaneExample extends Application {
> public static void main(String[] args) {
> launch(args);
> }
>
> public void start(Stage primaryStage) {
> Tab tab0 = new Tab("Tab 0");
> Tab tab1 = new Tab("Tab 1");
> Tab tab2 = new Tab("Tab 2");
> TabPane tabPane = new TabPane();
> tabPane.getTabs().addAll(tab0, tab1, tab2);
> tabPane.setSide(Side.LEFT);
>
> Scene scene = new Scene(tabPane);
> primaryStage.setScene(scene);
> primaryStage.show();
> }
> }
> ```
>
>  | 
> Output with this fix. | Output without this fix.
>
> Edit: Also, please note the difference of space between letter `a` and `b` in Tab's label.
At which screen scale did you observe this?
-------------
PR: https://git.openjdk.java.net/jfx/pull/308
More information about the openjfx-dev
mailing list