Project

General

Profile

Actions

Bug #1856

closed

WTable bad render in Chrome

Added by Miguel Revilla over 11 years ago. Updated over 11 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
04/19/2013
Due date:
% Done:

0%

Estimated time:

Description

WTable border is not rendered well on Chrome. It works fine on Firefox and Opera. See the attached pictures.

I'm using bootstrap theme and the code is simply:

WTable *table = new WTable() ;
table->setStyleClass("table table-striped table-bordered") ;
table->setHeaderCount(1,Horizontal) ;
table->setHeaderCount(1,Vertical) ;

All put inside a WVBoxLayout with an stretch added below the table.


Files

WTable_chrome.png (5.35 KB) WTable_chrome.png Miguel Revilla, 04/19/2013 12:23 PM
WTable_firefox.png (6.12 KB) WTable_firefox.png Miguel Revilla, 04/19/2013 12:23 PM
WTable_opera.png (4.48 KB) WTable_opera.png Miguel Revilla, 04/19/2013 12:23 PM
Actions #1

Updated by Koen Deforche over 11 years ago

  • Status changed from New to Feedback

Hey,

When using form elements inside a table, I think it will help if you add 'form-inline' to the table classes as well, and perhaps resolve the issue ?

Regards,

koen

Actions #2

Updated by Miguel Revilla over 11 years ago

form-inline is not helping, sorry. Forgot to mention that the issue appeared even before adding the radiobuttons to the table, with just empty cells and the WTexts for the row and column headers. I've tried with IE and works fine. Looks like is something very Chrome specific (but it might be an upstream bug and not Wt's).

Actions #3

Updated by Koen Deforche over 11 years ago

  • Status changed from Feedback to InProgress
Actions #4

Updated by Koen Deforche over 11 years ago

  • Status changed from InProgress to Resolved
  • Assignee set to Koen Deforche
  • Target version set to 3.3.1

Hey,

I can confirm the issue. This seems to be a bug in Chrome with border-collapse and box-sizing, which fortunately is easy enough to work around.

Regards,

koen

Actions #5

Updated by Koen Deforche over 11 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF