Project

General

Profile

Bug #7274

Dialog inconsistency

Added by Sebastian Fett almost 3 years ago. Updated over 1 year ago.

Status:
Feedback
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
10/09/2019
Due date:
% Done:

0%

Estimated time:

Description

When you create a new Dialog WT internally creates 2 divs, 1 popup and inside that popup a dialog. Now if you set the size of the dialog the size of the popup isnt linked to that one. This results in dialog windows like the one i attached. The blacked out part is a text which i censored. The ok button is in the footer of the dialog but the popup is larger.

   div->doubleClicked().connect([=] {
        auto dialog = c->addChild(std::make_unique<Wt::WDialog>("Erweiterte Informationen"));
        dialog->rejectWhenEscapePressed();
        dialog->setResizable(true);
        dialog->setMinimumSize("80%","70%");
        Wt::WLabel *label = dialog->contents()->addNew<Wt::WLabel>("<p> Help text </p>");
        Wt::WImage *bild = dialog->contents()->addNew<Wt::WImage>(Wt::WLink("icons/aufloesung.gif"));
        Wt::WPushButton *ok = dialog->footer()->addNew<Wt::WPushButton>("OK");
        ok->clicked().connect([=] {
            c->removeChild(dialog);
        });
        dialog->finished().connect([=] {
           c->removeChild(dialog);
        });
    dialog->show();
    });

Files

Screenshot_2019-10-09 FPMWeb.png (91.5 KB) Screenshot_2019-10-09 FPMWeb.png Sebastian Fett, 10/09/2019 12:44 PM
wtissues (16.5 KB) wtissues Sebastian Fett, 10/15/2019 01:39 PM

Also available in: Atom PDF