开发者

Add padding for SpanElement with background color

I have a Spark TextArea with a SpanElement inside. This element has the backgroundColor property set, but I would like to have the background a bit t开发者_运维知识库aller because it looks a bit weird at the top like this.

Example: http://i.stack.imgur.com/Ohl0F.png

I already tried to adjust lineHeight and paddingTop for the SpanElement, but no luck.

Any ideas?

Thanks in advance.


In my experience with backgroundColor in text span you can tweak the baselineShift to change the relative position of the text and background. FTQuest

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜