How to style a StaticTextItem exactly as a TextItem ?
I don't want it to be a TextItem instead because, when using a TextItem, calling setValue("➞") (right arrow ➞) doesn't show the right arrow, but the string "➞".
I know a ";" is missing, .. but this forum changes the string to a right arrow, that's why I removed it.
(If you have a solution for how to show "➞" as a right arrow in a TextItem you can stop reading my post :-) ).
So I tried with a StaticTextItem, where the string is shown as an arrow.
But it is 2 pixels taller than the rest of TextItems, and when settingValue(), it gets even taller (1-2 pixels taller).
Even with staticTextItem.setHeight(20) it is still 22 pixels and it still gets taller when settingValue(""➞");
I styled it with:
staticTextItem.setTextBoxStyle("textItem");
Attached is a screenshot. There you see that the StaticTextItem (ElternKnoten) is taller than the rest of TextItems...
This would not be a problem if the StaticTextItem wouldn't get taller when setting the value (screenshot2), so that the whole group title moves.
Using smartGWT 4.1 v9.1p_2014-09-25/PowerEdition Deployment (built 2014-09-25)
I don't want it to be a TextItem instead because, when using a TextItem, calling setValue("➞") (right arrow ➞) doesn't show the right arrow, but the string "➞".
I know a ";" is missing, .. but this forum changes the string to a right arrow, that's why I removed it.
(If you have a solution for how to show "➞" as a right arrow in a TextItem you can stop reading my post :-) ).
So I tried with a StaticTextItem, where the string is shown as an arrow.
But it is 2 pixels taller than the rest of TextItems, and when settingValue(), it gets even taller (1-2 pixels taller).
Even with staticTextItem.setHeight(20) it is still 22 pixels and it still gets taller when settingValue(""➞");
I styled it with:
staticTextItem.setTextBoxStyle("textItem");
Attached is a screenshot. There you see that the StaticTextItem (ElternKnoten) is taller than the rest of TextItems...
This would not be a problem if the StaticTextItem wouldn't get taller when setting the value (screenshot2), so that the whole group title moves.
Using smartGWT 4.1 v9.1p_2014-09-25/PowerEdition Deployment (built 2014-09-25)
Comment