Project

General

Profile

Actions

Bug #1473

closed

wt-3.2.3-rc1 Resizing layout problem within StdGridLayoutImpl2.js

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

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
10/16/2012
Due date:
% Done:

0%

Estimated time:

Description

If a widget is hidden within a grid cell not all cells are resized correctly if the browser window size is changed. To reproduce this behaviour use the following test app:

http://pastebin.com/ZJXcMU7w

After hitting the "Apply" Button the middle right-most widget "Details" will be hidden. When you now resize the browser window the top and bottom cells (rows 0 and 2) are not resized anymore. If you hit the "Apply" button again the "Details" widget will show up again and the resizing works fine.


Files

Wt-HBox-Layout-Problem.png (113 KB) Wt-HBox-Layout-Problem.png Stefan Ruppert, 10/17/2012 05:35 PM
Actions #1

Updated by Koen Deforche over 11 years ago

  • Status changed from New to Resolved
  • Assignee set to Koen Deforche
  • Target version set to 3.2.3

Hey,

It was the overspanned cells that were confused by the column that disappeared (because the only widget in it got hidden). In general, you will find that more things may not work reliable with these overspanned widgets, and I would recommend to simply use nested layouts in this case (WVBoxLayout + WHBoxLayout) for the 3rd row, which has exactly the same functionality. This should (will?) also solve the glitch that the resize handle is not removed when you hide the column.

Regards,

koen

Actions #2

Updated by Stefan Ruppert over 11 years ago

Koen Deforche wrote:

and I would recommend to simply use nested layouts in this case (WVBoxLayout + WHBoxLayout) for the 3rd row, which has exactly the same functionality. This should (will?) also solve the glitch that the resize handle is not removed when you hide the column.

Hi Koen,

I tried a WVBoxLayout + WHBoxLayout combination and it works fine except if I open a dialog with a positionAt(widget) where the widget is in a WHBoxLayout I get the result shown in the attached screenshot. Also the listview of a WComboBox will move the WTableView to a wrong position. Any idea?

Stefan

Actions #3

Updated by Koen Deforche over 11 years ago

  • Status changed from Resolved to InProgress

Hey Stefan,

No, no idea, but positionAt() indeed needs to deal properly with absolutely positioned ancestors, so I guess something is not quite right there.

Regards,

koen

Actions #4

Updated by Stefan Ruppert over 11 years ago

Hi Koen,

Koen Deforche wrote:

No, no idea, but positionAt() indeed needs to deal properly with absolutely positioned ancestors, so I guess something is not quite right there.

I think this is a side effect of the bug reported with #1483. I hope when #1483 is fixed this problem should be away also! ;-)

Stefan

Actions #5

Updated by Koen Deforche over 11 years ago

  • Status changed from InProgress to Feedback

Hey Stefan,

And, was it a side effect or do you still have this problem ?

Regards,

koen

Actions #6

Updated by Stefan Ruppert over 11 years ago

Hi Koen,

yes it was the side effect. The problem was fixed with the changes of #1483.

Thanks,

Stefan

Actions #7

Updated by Koen Deforche over 11 years ago

  • Status changed from Feedback to Resolved

Great !

Regards,

koen

Actions #8

Updated by Koen Deforche over 11 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF