Project

General

Profile

Actions

Bug #3904

closed

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

Added by Stefan Ruppert about 9 years ago. Updated about 9 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
Actions #1

Updated by Koen Deforche about 9 years ago

  • Status changed from New to InProgress
  • Assignee set to Benoit Daccache
Actions #2

Updated by Benoit Daccache about 9 years ago

  • Status changed from InProgress to Resolved
Actions #3

Updated by Koen Deforche about 9 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF