This is probably more of a html problem than a wt one. 
The example below works perfectly well with firefox or seamonkey on
windows or linux. But with internet explorer 7 on windows xp I observe
the following behavior:
The tab widget sizes to the height of the content of the tab that's
first visible. If I then change to a tab with larger content, the tab
control still has the small size and a scrollbar. If I tab back and
forth it gets even worse.

Now what do I have to do to make this behave well with internet
explorer?

Rgds
Richard

class Testapp_IE : public Wt::WApplication
{
public:
        Testapp_IE(const Wt::WEnvironment& env) : Wt::WApplication(env)
        {
                Wt::WContainerWidget *contall = new 
Wt::WContainerWidget(root());
                Wt::WBorderLayout *blayout = new Wt::WBorderLayout();
                contall->setLayout(blayout);

                Wt::WContainerWidget *contw = new Wt::WContainerWidget();
                blayout->addWidget(contw, Wt::WBorderLayout::Center);

                tabw_ = new Wt::WTabWidget(contw);

                Wt::WContainerWidget *tab1 = new Wt::WContainerWidget();
                tabw_->addTab(tab1, "Tab1");
                Wt::WImage *img1 = new
Wt::WImage("http://www.swissleague.ch/big/sl2486.jpg";);
                tab1->addWidget(img1);

                Wt::WContainerWidget *tab2 = new Wt::WContainerWidget();
                tabw_->addTab(tab2, "Tab2");
                Wt::WImage *img2 = new
Wt::WImage("http://swissleague.ch/raw/sl2486.jpg";);
                tab2->addWidget(img2);

        }

        virtual ~Testapp_IE() { }

private:
        Wt::WTabWidget *tabw_;
};



------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to