Skip to content

Commit

Permalink
Adjust stacked widget content before setting fixed height
Browse files Browse the repository at this point in the history
WE2-797

Signed-off-by: Raul Metsma <raul@metsma.ee>
  • Loading branch information
metsma committed Oct 9, 2023
1 parent e8e4916 commit 0215fd9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ Description: Web eID application suite (metapackage)

Package: web-eid-native
Architecture: any
Multi-Arch: foreign
Depends: pcscd, ${shlibs:Depends}, ${misc:Depends}
Replaces: token-signing-native
Breaks: token-signing-native
Expand Down
2 changes: 2 additions & 0 deletions src/ui/webeiddialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -680,6 +680,8 @@ void WebEidDialog::showPinInputWarning(bool show)

void WebEidDialog::resizeHeight()
{
ui->pageStack->currentWidget()->setFixedWidth(ui->pageStack->currentWidget()->width());
ui->pageStack->currentWidget()->adjustSize();
ui->pageStack->setFixedHeight(ui->pageStack->currentWidget()->sizeHint().height());
adjustSize();
}
Expand Down

0 comments on commit 0215fd9

Please sign in to comment.