barmalei / zebkit

JavaScript library that follows easy OOP concept, provides HTML5 Canvas based Rich UI and includes Java to JavaScript converter tool
Apache License 2.0
931 stars 177 forks source link

issue about CutStringRender #155

Open vasu-vvp opened 6 years ago

vasu-vvp commented 6 years ago

Hi, I am using latest zebkit code from Github. You have added CutStringRender to show ellipses if the text does not fits in the area. I am working with Grid. CutStringRender works perfect for default alignment (i.e. left) . When we change alignment to "right" or "center" then it does not works as expected. Refer : image

what is the solution if alignment is right or center ?

How to use CutStringRender with Labels ? 1 ] If CutStringRender can not be used with Labels then is there any other solution to show ellipses for text in label. 2 ] Can we set alignments for Label text ?

Thanks !