-
Bug
-
Resolution: Fixed
-
P2
-
jfx11.0.12, 8u301, jfx17
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8267310 | 8u311 | Ambarish Rapte | P2 | Resolved | Fixed | b01 |
JDK-8267328 | 8u301 | Ambarish Rapte | P2 | Closed | Fixed | b06 |
JDK-8267335 | jfx11.0.12 | Ambarish Rapte | P2 | Resolved | Fixed |
The attached test case shows that after hiding the stage, when showing it again the Labels after the Button take the button's padding and background properties.
The test sets by CSS a font size different than 13 px (default for labeled controls). Using 13 px or removing it works fine.
Also, a Button and some other controls like a CheckBox, a ComboBox or a Spinner are required in the scene.
After pressing the button, that simply hides and shows the stage again (see AfterHideAndShow attached pic), the logs from CssStyleHelper::recalculateRelativeSizeProperties show that these properties are wrongly set for Label "Text 2" (also for "Text 4"):
-fx-padding, call applyStyle: ObjectProperty [bean: Label@5cc81f36[styleClass=label]'Text 2', name: padding, value: Insets [top=0.0, right=0.0, bottom=0.0, left=0.0]], value =Insets [top=4.3, right=8.7, bottom=4.3, left=8.7], originOfCalculatedValue=USER_AGENT
-fx-region-background, call applyStyle: ObjectProperty [bean: Label@5cc81f36[styleClass=label]'Text 2', name: background, value: null], value =javafx.scene.layout.Background@4d573d15, originOfCalculatedValue=USER_AGENT
Running with 17-ea+2 or lower, or reverting the fix for
- backported by
-
JDK-8267310 Wrong CSS properties are applied to other nodes after fix for JDK-8204568
- Resolved
-
JDK-8267335 Wrong CSS properties are applied to other nodes after fix for JDK-8204568
- Resolved
-
JDK-8267328 Wrong CSS properties are applied to other nodes after fix for JDK-8204568
- Closed
- relates to
-
JDK-8204568 Relative CSS-Attributes don't work all time
- Closed
- links to
-
Commit openjdk/jfx11u/b2d930e7
-
Commit openjdk/jfx/93de5840
-
Review openjdk/jfx11u/17
-
Review openjdk/jfx/504