Project

General

Profile

Actions

Bug #3957

closed

WBoxLayout::setResizable() initialSize produces errors with dynamic layout if other widgets are hidden

Added by Stefan Ruppert over 9 years ago. Updated about 9 years ago.

Status:
Closed
Priority:
High
Assignee:
Target version:
Start date:
04/07/2015
Due date:
% Done:

0%

Estimated time:

Description

Hi,

I wanted to use the new initialSize parameter of the WBoxLayout::setResizable() method. It works as expected, but if a widget is hidden the layout does not resize other widgets in this layout. The following screenshots demonstrate the problem:

  1. Screenshot shows the initial state of the application
  2. Screenshot shows the hidden bottom view without using initialSize (every thing is correctly rendered)
  3. Screenshot shows the initial state of the application with using initialSize
  4. Screenshot shows the error when the bottom view is hidden

Regards,

Stefan


Files

Actions #1

Updated by Stefan Ruppert over 9 years ago

Hi,

attached you will find a simple test app which can be used to reproduce the error.

  1. Push the Hide-Button several times and the bottom view "More details" will be hidden/showed and everything is rendered fine
  2. Push Use InitialSize-Button once
  3. Now the pushing the Hide-Button will produce the layout problems...

Also the resize handle is not correctly rendered?

Regards,

Stefan

Actions #2

Updated by Stefan Ruppert over 9 years ago

Hi,

any idea whats going wrong here? I would really like to see this fixed.

We plan to release a new version of our software by end of april!!

Regards,

Stefan

Actions #3

Updated by Koen Deforche over 9 years ago

  • Status changed from New to InProgress
  • Assignee set to Koen Deforche
Actions #4

Updated by Koen Deforche over 9 years ago

  • Status changed from InProgress to Resolved

Hey,

I fixed the (two) issues:

  • the resize handle (bar) is now correctly hidden for this case
  • initialSize being picked up as a fixed size when there is no more resize handle controlling it's size
  • removed a comment that said that the old code "wasn't entirely accurate" :-)

Thanks for the test case!

Actions #5

Updated by Stefan Ruppert over 9 years ago

Hi Koen,

thanks for fixing it! Can you provide me a patch thus I can integrate it into our wt-build?

Regards,

Stefan

Actions #6

Updated by Koen Deforche about 9 years ago

  • Status changed from Resolved to Closed
Actions #7

Updated by Koen Deforche about 9 years ago

  • Target version changed from 3.3.4 to 3.3.5
Actions

Also available in: Atom PDF