-
Enhancement
-
Resolution: Unresolved
-
P4
-
8u102
-
x86_64
-
windows_7
A DESCRIPTION OF THE REQUEST :
In the current implementation of Tooltip only certain parameters are style able through CSS, however key items such as maxWidth is not, yet is available in API.
JUSTIFICATION :
Having to subclass Tooltip to set these values to provide a common look and feel is cumbersome, and requires new developers to know to use these tools, otherwise they will set manually in code such as tooltip.setMaxWidth(). Being able to define this in CSS would make coding simpler and more consistent and allow for rapid changes without impacting the code base.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
setting
.tooltip {
-fx-max-width: 250;
-fx-wrap-text:true;
}
Should provide a presized tooltip that wraps when it's width is exceeded
ACTUAL -
Nothing happens unless you set the max width in code
In the current implementation of Tooltip only certain parameters are style able through CSS, however key items such as maxWidth is not, yet is available in API.
JUSTIFICATION :
Having to subclass Tooltip to set these values to provide a common look and feel is cumbersome, and requires new developers to know to use these tools, otherwise they will set manually in code such as tooltip.setMaxWidth(). Being able to define this in CSS would make coding simpler and more consistent and allow for rapid changes without impacting the code base.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
setting
.tooltip {
-fx-max-width: 250;
-fx-wrap-text:true;
}
Should provide a presized tooltip that wraps when it's width is exceeded
ACTUAL -
Nothing happens unless you set the max width in code