Project

General

Profile

Actions

Bug #9284

closed

WTableView does not layout correctly when inside a WTabWidget

Added by Stefan Bn about 3 years ago. Updated about 2 months ago.

Status:
Closed
Priority:
Normal
Target version:
Start date:
11/04/2021
Due date:
% Done:

100%

Estimated time:

Description

When I use a WTableView inside a WTabWidget, the WTableView does not layout correctly. I assume this forum post refers to the same problem:

https://redmine.webtoolkit.eu/boards/2/topics/15120

The WTableView is streched to the entire size of the tab widget as expected and visible by the grey border.

Problem 1: The horizontal scrollbar is displayed after the last entry in the table, instead of the lower end of the WTabWidget (see Problem1.png)

Problem 2: When the window is resized to a smaller size, the horizontal scrollbar disappears, the vertical scrollbar does not appear (see Problem2.png)

When I use the same code outside a WTabWidget, everything works as expected.

I attached a minimal sample code that demonstrates the problem, this refers to Wt 4.5.1.


Files

Problem1.PNG (11.4 KB) Problem1.PNG Stefan Bn, 11/04/2021 01:56 PM
Problem2.PNG (5.44 KB) Problem2.PNG Stefan Bn, 11/04/2021 01:58 PM
main.cpp (3.25 KB) main.cpp Stefan Bn, 11/04/2021 02:02 PM
Actions #1

Updated by Stefan Bn about 3 years ago

Update: It seems to be more like a problem in the WStackedWidget-part of the WTabWidget and this helps:

https://redmine.webtoolkit.eu/boards/2/topics/14926?r=15653#message-15653

Is this expected behavior or a bug?

Actions #2

Updated by Roel Standaert over 2 years ago

  • Target version set to future
Actions #4

Updated by Matthias Van Ceulebroeck 10 months ago

  • Status changed from New to InProgress
  • Assignee set to Matthias Van Ceulebroeck
Actions #5

Updated by Matthias Van Ceulebroeck 10 months ago

  • Status changed from InProgress to Review
  • Assignee deleted (Matthias Van Ceulebroeck)
  • Target version changed from future to 4.10.4
Actions #6

Updated by Matthias Van Ceulebroeck 4 months ago

  • Target version changed from 4.10.4 to 4.11.1
Actions #7

Updated by Matthias Van Ceulebroeck 4 months ago

  • Status changed from Review to Implemented @Emweb
  • Assignee set to Matthias Van Ceulebroeck
  • Target version changed from 4.11.1 to 4.11.0
  • % Done changed from 0 to 100
Actions #8

Updated by Matthias Van Ceulebroeck about 2 months ago

  • Status changed from Implemented @Emweb to Closed
Actions

Also available in: Atom PDF