No scroll in WTableView
Added by Steve Forman almost 5 years ago
Hello!
I am facing the following problem. I have a code:
WTableView *tableView = new WTableView(this);
tableView->addStyleClass("admin-table-new-overflow");
tableView->setRowHeaderCount(1);
tableView->setColumnWidth(0, "590px");
tableView->setHeight("590px");
tableView->setWidth("250px");
tableView->setRowHeight("30px");
tableView->setSelectable(true);
tableView->setOverflow(WContainerWidget::OverflowScroll);
QStringList allDataList, filteredUrlList;
VirtualModel *model = new VirtualModel(500, 1);
model->setDataUrls(allDataList, filteredUrlList);
tableView->setModel(model);
.admin-table-new-overflow
{
overflow : scroll !important;
};
I except to see my WTableView with scrolling area, but there appears div with fixed size and no virtual scroll. Inner div with data has attribute value - "overflow : hidden".
What am i doing wrong? Thanks in advance! (Wt 3.3.11)
Replies (1)
RE: No scroll in WTableView - Added by Steve Forman almost 5 years ago
The problem was in
tableView->setColumnWidth(0, "590px");
.