Project

General

Profile

Actions

Bug #11380

closed

WTableView not displaying checkboxes when used with BootStrap5 theme.

Added by Gavin Blakeman about 1 year ago. Updated about 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
02/27/2023
Due date:
% Done:

0%

Estimated time:

Description

WTableView is not displaying checkboxes. If the theme is set to Booststrap5. If the below code line in commented out, the check boxes display correctly.

setTheme(std::make_shared<Wt::WBootstrap5Theme>());


Files

tableview_check.cpp (1.61 KB) tableview_check.cpp Roel Standaert, 02/28/2023 04:44 PM
Actions #1

Updated by Roel Standaert about 1 year ago

I tried it out to see, but while I will certainly concede that the result doesn't look great, it does appear to work (see the attachment for the code I used).

What are you doing differently from my test code?

Actions #2

Updated by Gavin Blakeman about 1 year ago

Hi Roel,

Thank you for looking into this.

While I was writing a much longer response (since deleted) after doing some testing, I realised that I was using a custom booststrap5 css theme. When I include the custom theme
useStyleSheet(appRoot() + "resources/css/bootstrap.min.css");
I then get the same problem with your code. So the problem is probably in the custom theme I am using.

This gives me a place to go looking.

This bug is not a bug and can be closed.

Thank you again.

Actions #3

Updated by Roel Standaert about 1 year ago

  • Status changed from Feedback to Closed
Actions

Also available in: Atom PDF