Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

How to get Context2d object from smart gwt ListGridField?

$
0
0
How can I retrieve the Context2d object from a ListGridField? In the standard GWT canvas object there is a getContext2d function that returns it but that function doesn't seem to exist on the smart gwt Canvas class.

I'm trying to use the measureText function to measure the width of a string using a certain font. If the current width of the ListGridField is too small to hold the text I intend to provide an abbreviated header to use instead.

Viewing all articles
Browse latest Browse all 4756

Trending Articles