Firefox 1.5.0.9
Added by Paul de Wit over 6 years ago
Hello,
I am starting development of a website using Wt. The website must work with modern (evergreen) browsers, but also with one specific oldie: Firefox 1.5.0.9 (Dec. 2006). To test if Wt can do this, I created a basic main screen with the following layout (no CSS used):
-------------------------------
| logo | title | menu |
-------------------------------
| content pages |
-------------------------------
| status info |
-------------------------------
The following code creates the main page:
@
auto logo = Wt::cpp14::make_uniqueWt::WImage(WLink("/logo.png"));
auto title = Wt::cpp14::make_uniqueWt::WText("Title");
auto menu = Wt::cpp14::make_uniqueWt::WText("Menu");
auto hlayout_top = Wt::cpp14::make_uniqueWt::WHBoxLayout();
hlayout_top->addWidget(std::move(logo), 0);
hlayout_top->addWidget(std::move(title), 1);
hlayout_top->addWidget(std::move(menu), 0);
...
auto vlayout = Wt::cpp14::make_uniqueWt::WVBoxLayout();
vlayout->addLayout(std::move(hlayout_top), 0);
vlayout->addLayout(std::move(hlayout_mid), 1);
vlayout->addLayout(std::move(hlayout_bot), 0);
auto framework = Wt::cpp14::make_uniqueWt::WContainerWidget();
framework->setLayout(std::move(vlayout));
root()->addWidget(std::move(framework));
@
Chrome 60 and Firefox 55 display the page correctly. But Firefox 1.5.0.9 draws the logo, title and menu vertically:
-------------
| logo |
-------------
| title |
-------------
| menu |
-------------
| content |
-------------
| status |
-------------
Why is the page not rendered correctly in Firefox 1.5.0.9? Should the main screen layout be created differently?
I'm using Wt 4.0.0-rc2 with Boost 1.64.
Replies (1)
RE: Firefox 1.5.0.9 - Added by Paul de Wit over 6 years ago
Please delete/ignore this topic, the layout is messed up. I created a new topic.