Project

General

Profile

Bug #3904

wt-3.3.4-rc2: WDialog::positionAt() position scheme should be fixed

Added by Stefan Ruppert over 7 years ago. Updated over 7 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Benoit Daccache
Target version:
Start date:
03/19/2015
Due date:
% Done:

0%

Estimated time:

Description

Hi,

I use a WDialog to let the user select some values from a list and I want to position the dialog next to a widget by using positionAt() method. The dialog is positioned correctly regarding the coordinates but some parts of the dialog is not shown. The position scheme is set to absolute within the positionAt() method. But it should be fixed.

For now I use an own positionAt() method using a WMouseEvent object. Maybe you can include this method into the WPopupWidget class as well.

void MyDialog::positionAt(const Wt::WMouseEvent& ev)
{
   setPositionScheme(Fixed);
   setOffsets(ev.window().x, Left);
   setOffsets(ev.window().y, Top);
}

Files

WDialog-absolute-position.png (28.1 KB) WDialog-absolute-position.png positionAt(WWidget) with absolute position scheme Stefan Ruppert, 03/19/2015 11:39 AM
WDialog-Mouse-Position-Fixed.png (29.4 KB) WDialog-Mouse-Position-Fixed.png MyDialog::positionAt(WMouseEvent) with fixed position scheme Stefan Ruppert, 03/19/2015 11:39 AM

Also available in: Atom PDF