Hi Koen, Thanks for the fix. But I've found what is probably yet another version of the same problem. If the panel containing the combobox is added to a WContainerWidget, the elements in the combo are still to short. I've attatched code to demonstrate this.
--- ViewController.hpp : ------------------ #ifndef VIEW_CONTROLLER_H_ #define VIEW_CONTROLLER_H_ #include <WApplication> #include <Ext/TabWidget> class ViewController : public Wt::WApplication { public: ViewController(const Wt::WEnvironment& env); ~ViewController(); }; #endif // VIEW_CONTROLLER_H_ ----------- ViewController.cpp : --------------------- #include "ViewController.hpp" #include <WDefaultLayout> #include <WContainerWidget> #include <WTable> #include <Ext/ComboBox> #include <Ext/Container> #include <Ext/TabWidget> using namespace Wt; ViewController::ViewController(const Wt::WEnvironment& env) : WApplication(env) { WContainerWidget* myRoot = new WContainerWidget(root()); Ext::Container *viewPort = new Ext::Container(myRoot); Ext::TabWidget* tabs = new Ext::TabWidget(); Ext::Panel* configurePanel = new Ext::Panel(); // Create ComboBox Ext::ComboBox* selectTypeComboBox = new Ext::ComboBox(); configurePanel->layout()->addWidget(selectTypeComboBox); selectTypeComboBox->setTextSize(15); selectTypeComboBox->addItem("Ford Mustang"); selectTypeComboBox->addItem("Mazda MX3"); selectTypeComboBox->addItem("Oldsmobile"); selectTypeComboBox->addItem("Pumpkin carriage"); WContainerWidget* panelContainer = new WContainerWidget(); panelContainer->addWidget(configurePanel); tabs->addTab(panelContainer, "my tab"); viewPort->layout()->addWidget(tabs); } ViewController::~ViewController() { } WApplication *createApplication(const WEnvironment& env) { WApplication *app = new ViewController(env); return app; } int main(int argc, char **argv) { return WRun(argc, argv, &createApplication); } -- Med venlig hilsen / Best regards Michael Sørensen Loft, Mjølner Informatics A/S > -----Original Message----- > From: Koen Deforche [mailto:[EMAIL PROTECTED] > Sent: 20. november 2008 17:28 > To: witty-interest@lists.sourceforge.net > Subject: Re: [Wt-interest] Odd behavior of Ext::ComboBox > > Hey Michael, > > 2008/11/20 Michael Sørensen Loft <[EMAIL PROTECTED]>: > > Hi Koen, > > > >> This was (supposedly) fixed in Wt. You may have another > problem? Can > >> you send me a screenshot? > > > > better yet, here is code to reproduce the problem. The > combo box behaves incorrectly, when it is added to a > container inside a tab. > > Excellent! > > A fix is in CVS. It was another version of the same problem... > > Regards, > koen > > -------------------------------------------------------------- > ----------- > This SF.Net email is sponsored by the Moblin Your Move > Developer's challenge Build the coolest Linux based > applications with Moblin SDK & win great prizes Grand prize > is a trip for two to an Open Source event anywhere in the > world http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > witty-interest mailing list > witty-interest@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/witty-interest > ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ witty-interest mailing list witty-interest@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/witty-interest