Hi all,

I've some problems with this code (Wt-3.3.1)

====================================================
#include "wtapp.h"

#include <Wt/WGridLayout>
#include <Wt/WPushButton>

WtApp::WtApp(const Wt::WEnvironment& env)
    : Wt::WApplication(env) {

      Wt::WGridLayout* const myLayout = new Wt::WGridLayout;

      myLayout->addWidget(new Wt::WText("A very very very very very very
very very very very very very very long string"), 0, 0, 1, 2);
      myLayout->addWidget(new Wt::WPushButton("Ok"), 1, 0);
      myLayout->addWidget(new Wt::WPushButton("Ok"), 1, 1);

      root()->setLayout(myLayout);
}
======================================================

I don't understand the reason why column 0 is larger than column 1.

What does this different size depends on according to Wt management?

If the very very long string gets really short, the two columns are
equally sized.

Thanks all,
Antonio


------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________
witty-interest mailing list
witty-interest@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to