Bug #3679
closedSupport resizing WDialogs with a bottom or right position
0%
Description
A WDialog positioned with the positionAt method may end-up with right or bottom positioning. However, attempts to resize a WDialog with right or bottom positioning do not work correctly; the window resizes in the direction opposite of the mouse movement. This is with the github version of Wt 3.3.3-25-g7023b38.
A small application that was used for testing dragging, resizing and reordering of modeless WDialogs is 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.
Three patches that seem to help with this issue are also attached. The third patch handles the bottom and right resize cases. However, it will not work correctly for themes that have borders without the first patch which addresses an issue in calculating the size of a layoutContainer. The second patch prevents an incorrect size change at drag initialization for the case where a default dialog size is specified in CSS.
The above patches are part of a series of patches that have been (lightly) tested together, but may also work separately.
Files
Updated by Koen Deforche almost 10 years ago
- Status changed from New to InProgress
- Assignee set to Benoit Daccache
- Target version set to 3.3.4
Updated by Benoit Daccache almost 10 years ago
- Status changed from InProgress to Resolved
Updated by Koen Deforche almost 10 years ago
- Status changed from Resolved to Closed