Project

General

Profile

Actions

Bug #9695

closed

WSuggestionPopup has too low z-index if it is created before the WDialog it is used in

Added by Andreas Frolov almost 3 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
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();
Actions #1

Updated by Korneel Dumon over 2 years ago

  • Status changed from New to InProgress
  • Assignee set to Korneel Dumon
  • Target version set to 4.7.0
Actions #2

Updated by Roel Standaert over 2 years ago

  • Target version changed from 4.7.0 to 4.7.1
Actions #3

Updated by Roel Standaert over 2 years ago

  • Status changed from InProgress to Implemented @Emweb
Actions #4

Updated by Roel Standaert over 2 years ago

  • % Done changed from 0 to 100
Actions #5

Updated by Roel Standaert over 2 years ago

  • Status changed from Implemented @Emweb to Resolved
Actions #6

Updated by Roel Standaert over 2 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF