Hi List,
I have come across a slight problem when modifying the column alignment
in WTableView objects (I am using Wt 3.3.2). When the table was already
rendered for the first time, the changes are not applied to the
specified column.
The following override of setColumnAlignment() seems to work nicely for
my needs, as it updates the alignment for the column:
----------------------------------------
void Table::setColumnAlignment (int column, Wt::AlignmentFlag alignment)
{
WTableView::setColumnAlignment(column, alignment);
const auto& columnInfo = columns_[column];
wApp->styleSheet().ruleModified(columnInfo.styleRule);
}
----------------------------------------
Is it recommended to handle it that way? Is there a reason why
WAbstractItemView does not trigger the update on its own?
Kind regards,
Marc Faber
------------------------------------------------------------------------------
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest