This is a known 
issue: https://code.google.com/p/google-web-toolkit/issues/detail?id=7586

On Tuesday, November 20, 2012 6:11:56 AM UTC+1, tong123123 wrote:
>
> My DataGrid has 6 columns and I want the last column to align right, I 
> write
>
> NumberCell numberCell = new NumberCell();
>> Column<ServiceLogLevel, Number> debugLogLevelCol = new 
>> Column<ServiceLogLevel, Number>(numberCell){            
>>     @Override
>>     public Integer getValue(ServiceLogLevel serviceLogLevel) {
>>         // TODO Auto-generated method stub
>>         return serviceLogLevel.getDebugLogLevel();
>>     }                
>> };
>>
>> debugLogLevelCol.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_RIGHT);
>> resultGrid.addColumn(debugLogLevelCol, "debug log level");
>>
>
> but I found the data cannot be shown (columnAlignRight.jpg), but if change 
> to use Align_center or align_left, the data can be shown correctly (as 
> shown in columnAlignCenter.jpg).
> Using IE8 debug mode, I see that the 
> <div> is wider than the <td>,
> and I think if using align right, the data is shown outside the <td> and 
> so cannot be seen.
> why will this happen?
>
> Also, I am using gwt 2.4, I check the api and datagrid has no method 
>
>> *setWidth<http://google-web-toolkit.googlecode.com/svn/javadoc/2.4/com/google/gwt/user/cellview/client/CellTable.html#setWidth%28java.lang.String,%20boolean%29>
>> *(java.lang.String width, boolean isFixedLayout) 
>>
> as in CellTable?
>
>  
>
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/GPS2zJVIz6AJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to