cancel
Showing results for 
Search instead for 
Did you mean: 

Text alignment of a TextView does not work

Former Member
0 Kudos

HI,

I have created a textView dynamically and put it into FixedBottomCell of a column of a table.

Here is the code:


//create a fixed bottom cell for column  
IWDTableStandardCell fixedBottomCell =  (IWDTableStandardCell) view.createElement(IWDTableStandardCell.class);	
column.addFixedBottomCell(fixedBottomCell);
			
//create a text view element for the bottom cell
IWDTextView textView = (IWDTextView) view.createElement(IWDTextView.class, column.getId() + "BottomCell");

fixedBottomCell.setHAlign(WDTableColumnHAlign.FORCED_RIGHT);
textView.setHAlign(WDInputFieldAlignment.FORCED_RIGHT);
			
//add the editor to the sum columns
fixedBottomCell.setEditor(textView);

The problem is, the the text in the column is displayed left, not right.

Any ideas?

Best regards,

Peter

Accepted Solutions (1)

Accepted Solutions (1)

junwu
Active Contributor
0 Kudos

have you tried to set at column level?

Former Member
0 Kudos

Ohh, thank you. That solved my problem.

Best regards,

Peter

Answers (0)