Skip to content

Commit

Permalink
Make ScrollPane CSS style "more specific" on some places and other sm…
Browse files Browse the repository at this point in the history
…aller tweaks
  • Loading branch information
dukke committed Mar 15, 2021
1 parent e2ddd5a commit 908e9e2
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
<?import javafx.scene.layout.ColumnConstraints?>
<?import javafx.scene.layout.GridPane?>
<?import javafx.scene.layout.RowConstraints?>
<?import javafx.scene.layout.VBox?>

<ScrollPane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="400.0"
prefWidth="521.0" xmlns="http://javafx.com/javafx/15.0.1">
<ScrollPane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="400.0" prefWidth="521.0" xmlns="http://javafx.com/javafx/15.0.1" xmlns:fx="http://javafx.com/fxml/1">
<content>
<GridPane prefHeight="620.0" prefWidth="504.0">
<columnConstraints>
Expand All @@ -27,11 +27,21 @@
<TextField maxWidth="200.0" prefWidth="200.0" GridPane.columnIndex="1" GridPane.rowIndex="1" />
<Label text="123456789" GridPane.columnIndex="1" />
<Label text="Name:" GridPane.rowIndex="1" />
<TextArea prefHeight="520.0" prefWidth="441.0" GridPane.columnSpan="2" GridPane.rowIndex="2" />
<VBox GridPane.columnSpan="2" GridPane.rowIndex="2">
<children>
<TextArea prefHeight="520.0" prefWidth="441.0" />
</children>
<padding>
<Insets top="10.0" />
</padding>
</VBox>
</children>
<padding>
<Insets left="10.0" right="10.0" />
<Insets bottom="15.0" left="10.0" right="10.0" />
</padding>
<opaqueInsets>
<Insets />
</opaqueInsets>
</GridPane>
</content>
</ScrollPane>
2 changes: 1 addition & 1 deletion FXSkins/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ plugins {

sourceCompatibility = JavaVersion.VERSION_11

version = '1.0'
version = '1.0.0'
def versionDescription = 'FXSkins'

javafx {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -284,20 +284,20 @@ TextField > .right-button:hover > .right-button-graphic {

/************************ Minimal ScrollBar ********************************/

.scroll-pane .minimal-scroll-bar .decrement-arrow,
.scroll-pane .minimal-scroll-bar .increment-arrow {
.scroll-pane > .minimal-scroll-bar .decrement-arrow,
.scroll-pane > .minimal-scroll-bar .increment-arrow {
-fx-pref-width: 0;
-fx-pref-height: 0;
}

.scroll-pane .minimal-scroll-bar {
.scroll-pane > .minimal-scroll-bar {
-fx-background-color: transparent;
-fx-pref-width: 8;
-fx-pref-height: 8;
-fx-padding: 0;
}

.scroll-pane .minimal-scroll-bar > .track-background {
.scroll-pane > .minimal-scroll-bar > .track-background {
-fx-background-color: transparent;
}

Expand Down

0 comments on commit 908e9e2

Please sign in to comment.