Project

General

Profile

Actions

Bug #14475

open
MS ED

WDialog positioned aside widget is moved and wrongly sized on setMinimumSize

Bug #14475: WDialog positioned aside widget is moved and wrongly sized on setMinimumSize

Added by Michael Seibt 4 months ago. Updated 12 days ago.

Status:
Review
Priority:
Normal
Target version:
Start date:
04/15/2026
Due date:
% Done:

0%

Estimated time:

Description

Affected: WDialog::positionAt(WWidget*, Orientation) of Wt 4.13.0 (and most likely former versions)
WDialog::positionAt(WWidget*, Orientation) shows and positions the dialog.
Every setMinimumSize moves the dialog to some top-left position and often changes the size improperly (smaller than the specified minimum size).
Another call to WDialog::positionAt(WWidget*, Orientation) repairs it. But it causes flicker and the need to store the WWidget* and Orientation.
This happens regardless of whether the minimum size has actually changed or not.
The dialog did always fit to the viewport, i.e. this also not a reason for moving it.


Files

main.cpp (10.9 KB) main.cpp Michael Seibt, 04/16/2026 09:53 AM
clipboard-202608061150-6lvig.png (16.8 KB) clipboard-202608061150-6lvig.png Michael Seibt, 08/06/2026 11:50 AM
clipboard-202608061151-vtpfe.png (6.28 KB) clipboard-202608061151-vtpfe.png Michael Seibt, 08/06/2026 11:51 AM
clipboard-202608061152-ugiex.png (6.18 KB) clipboard-202608061152-ugiex.png Michael Seibt, 08/06/2026 11:52 AM

MS Updated by Michael Seibt 4 months ago Actions #1

STR:

  • run attached main.cpp
  • select a WTableView cell
  • press Space (invokes WDialog::positionAt(WWidget*, Orientation))
    --> A WDialog pops up aside the cell.
  • push button "setMinimumSize of dialog"
    --> The popup is moved to more or less weird top-left position in dependency of the WTableView.

MS Updated by Michael Seibt 19 days ago Actions #2

still present in Wt 4.14.0 plus truncation and misplaced move behavior
Please raise the priority!

STR:

  • select a cell in the first column (of the first WTableView on a tab)
  • press Space

  • push the button "setMinimumSize of dialog"

  • click the popup's title bar and move the mouse

RM Updated by Romain Mardulyn 19 days ago Actions #3

  • Status changed from New to InProgress
  • Assignee set to Romain Mardulyn
  • Target version set to 4.14.2

RM Updated by Romain Mardulyn 14 days ago Actions #4

  • Status changed from InProgress to Review
  • Assignee deleted (Romain Mardulyn)

ED Updated by emil de keyser 12 days ago Actions #5

  • Assignee set to emil de keyser

RM Updated by Romain Mardulyn 12 days ago Actions #6

The truncation is caused by Bug #13956: WPopupMenu not visible if popped up at itemWidget of (a narrow) WTableView with vertical scrollbar so it is tracked by that ticket. Note that the latest versions of chromium, safari and firefox do not have the truncation issue.

Actions

Also available in: PDF Atom