When building custom controls good OOP principles tell us to do this:
getStyleClass().add(DEFAULT_STYLE_CLASS);
in the constructor. This assures that the control will have all the classes including the inherited ones.
getUserAgentStylesheet() should work in the same way.
Currently overriding it will totally de-include the css files on which the super classes relay on.
getStyleClass().add(DEFAULT_STYLE_CLASS);
in the constructor. This assures that the control will have all the classes including the inherited ones.
getUserAgentStylesheet() should work in the same way.
Currently overriding it will totally de-include the css files on which the super classes relay on.
- duplicates
-
JDK-8091109 getUserAgentStylesheet() gives poor support for OOP because it does not work with inheritance
- Open