Project

General

Profile

Bug #3678

Support dragging WDialogs with a bottom or right position

Added by Bruce Toll over 7 years ago. Updated over 7 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Benoit Daccache
Target version:
Start date:
11/25/2014
Due date:
% Done:

0%

Estimated time:

Description

A WDialog positioned with the positionAt method may end-up with right or bottom positioning. However, a WDialog with a right or bottom position will jump to an initial offset when a drag is initiated. This is seen with github version 3.3.3-25-g7023b38 and may be related to issue #3253.

An attached set of patches (lightly tested) seems to help. The first patch handles the right and bottom cases, in general. The subsequent patches address issues encountered with the Bootstrap 2 theme.

The above patches are part of a series of patches that have been (lightly) tested together, but may also work separately.

A small application that was used for testing dragging, resizing and reordering of modeless WDialogs is also attached. Bottom and right positioning can be forced by setting the window size to be around the same size as the displayed table/grid and opening dialogs until you get one with the desired positioning.

If there are no adverse consequences, it may make sense to modify positionAt to only use left and top positioning. However, that wouldn't help with right or bottom setOffsets.


Files

Also available in: Atom PDF