Actions
Improvements #13574
opencheckbox in WTableView header is not exactly in the center
Status:
New
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
02/25/2025
Due date:
% Done:
0%
Estimated time:
Description
When the first column consists entirely of checkboxes then the header is not aligned with the rest of the column:
I tested it in the widgetgallery by modifying SmallTableView.cpp
like this:
...
auto model = csvToModel(WApplication::appRoot() + "table.csv");
model->setHeaderFlags(0, Wt::Orientation::Horizontal, Wt::HeaderFlag::UserCheckable);
model->setHeaderData(0, Wt::Orientation::Horizontal, {});
model->setHeaderData(0, Wt::Orientation::Horizontal, Wt::CheckState::Checked, Wt::ItemDataRole::Checked);
for (std::size_t i=0; i < model->rowCount(); ++i) {
auto item = model->item(i, 0);
item->setText("");
item->setCheckable(true);
}
tableView->setModel(model);
...
Files
No data to display
Actions