Actions
Bug #9695
closedWSuggestionPopup has too low z-index if it is created before the WDialog it is used in
Start date:
02/01/2022
Due date:
% Done:
100%
Estimated time:
Description
The example shows that the first WSuggestionPopup appears behind the WDialog.
class MyComboBox : public Wt::WLineEdit
{
public:
MyComboBox()
{
Wt::WSuggestionPopup::Options simpleOptions;
simpleOptions.highlightBeginTag = "<b>";
simpleOptions.highlightEndTag = "</b>";
simpleOptions.listSeparator = 0;
m_popup = std::make_unique<Wt::WSuggestionPopup>(simpleOptions);
m_popup->setDropDownIconUnfiltered(true);
m_popup->forEdit(this, Wt::PopupTrigger::Editing | Wt::PopupTrigger::DropDownIcon);
m_popup->addSuggestion("Item 1");
m_popup->addSuggestion("Item 2");
m_popup->addSuggestion("Item 3");
}
std::unique_ptr<Wt::WSuggestionPopup> m_popup;
};
auto layout = std::make_unique<Wt::WVBoxLayout>();
layout->addWidget(std::make_unique<MyComboBox>());
auto dialog = std::make_unique<Wt::WDialog>();
layout->addWidget(std::make_unique<MyComboBox>());
dialog->contents()->setLayout(std::move(layout));
dialog->exec();
Updated by Korneel Dumon almost 3 years ago
- Status changed from New to InProgress
- Assignee set to Korneel Dumon
- Target version set to 4.7.0
Updated by Roel Standaert almost 3 years ago
- Target version changed from 4.7.0 to 4.7.1
Updated by Roel Standaert over 2 years ago
- Status changed from InProgress to Implemented @Emweb
Updated by Roel Standaert over 2 years ago
- Status changed from Implemented @Emweb to Resolved
Updated by Roel Standaert over 2 years ago
- Status changed from Resolved to Closed
Actions