After updating my git working copy (after a while), content that is
larger than the screen is no longer scrollable.
Do I have to set some new property to get that back?
I searched the online documentation and the mailing list, but didn't
find what I was looking for.
Here is a stripped down example to demonstrate the problem:
/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8/////////9/////////A
class Testapp_Scroll : public Wt::WApplication
{
public:
Testapp_Scroll(const Wt::WEnvironment& env) : Wt::WApplication(env)
{
Wt::WBorderLayout *blayout = new Wt::WBorderLayout();
root()->setLayout(blayout);
Wt::WTabWidget *tabw = new Wt::WTabWidget();
blayout->addWidget(tabw, Wt::WBorderLayout::Center);
Wt::WContainerWidget *tab1 = new Wt::WContainerWidget();
tabw->addTab(tab1, "Tab1");
Wt::WBorderLayout *blayout1 = new Wt::WBorderLayout();
tab1->setLayout(blayout1);
Wt::WTable *table1 = new Wt::WTable();
blayout1->addWidget(table1, Wt::WBorderLayout::Center);
for(int i=0; i<200; ++i)
{
Wt::WText *txt = new
Wt::WText(boost::lexical_cast<std::string>(i));
table1->elementAt(i, 0)->addWidget(txt);
}
}
};
/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8/////////9/////////A
Wt::WApplication *createApplication(const Wt::WEnvironment& env)
{
Testapp_Scroll *app = new Testapp_Scroll(env);
return app;
}
/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8/////////9/////////A
int main(int argc, char *argv[])
{
return Wt::WRun(argc, argv, &createApplication);
}
/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8/////////9/////////A
When I inspect the result with firebug, I find :
...
<div id="o15" style="height: 473px;">
<div id="o13">
<div id="o1b" style="height: 100%;">
<table style="width: 100%;">
<col/>
<col style="width: 100%;"/>
<col/>
<tbody>
<tr style="height: 3806px;">
...
Rgds
Richard
------------------------------------------------------------------------------
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest