Project

General

Profile

Bug #3294

WTableView::createExtraHeaderWidget() and WTableView::setHeaderHeight() interaction woes

Added by Vincenzo Romano over 8 years ago. Updated about 8 years ago.

Status:
Feedback
Priority:
Normal
Assignee:
Target version:
Start date:
06/11/2014
Due date:
% Done:

0%

Estimated time:

Description

I needed to add an input field just below the table column header by overloading WTableView::createExtraHeaderWidget() and, of course, by making more room in the header with WTableView::setHeaderHeight().

Until I added a call to WTableView::setHeaderAlignment( c,AlignTop ) (for which there is another possible issue reported earlier) the input filed was added but slipped behind the very first table rows thus making it unreachable also because the actual HTML element implementing the table header is higher than the amount specified in the call to WTableView::setHeaderHeight().

You can compare the screenshots I am attaching and that I took thanks to Firefox "inspect element" feature.

Please, note the differences in the style statements: they are quite different in the two cases,


Files

shot-0263.png (53 KB) shot-0263.png Normal, where the header element is Vincenzo Romano, 06/11/2014 01:09 PM
shot-0264.png (52.6 KB) shot-0264.png Normal, where the input field is Vincenzo Romano, 06/11/2014 01:09 PM
shot-0265.png (53.1 KB) shot-0265.png AlignTop, where the header element is Vincenzo Romano, 06/11/2014 01:09 PM
shot-0266.png (51.6 KB) shot-0266.png AlignTop, where the the input field is Vincenzo Romano, 06/11/2014 01:09 PM
#1

Updated by Koen Deforche about 8 years ago

  • Status changed from New to Feedback
  • Assignee set to Koen Deforche

Hey,

Without setHeaderAlignment(AlignTop) you will not be able to see the 'extra' header widget, this is on purpose.

Do you still see problems with AlignTop set?

Koen

Also available in: Atom PDF