开发者

Add padding for SpanElement with background color

开发者 https://www.devze.com 2023-02-12 16:47 出处:网络
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

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

精彩评论

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