Project

General

Profile

Actions

Bug #2075

closed

WDateEdit is not styled in WCssTheme

Added by Saif Rehman over 10 years ago. Updated over 10 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
07/31/2013
Due date:
% Done:

0%

Estimated time:

Description

Hi,

I added a WDateEdit in a WContainerWidget which has css style class Wt-form and the calendar icon on the right on WDateEdit does not appear.


Files

inform.cpp (691 Bytes) inform.cpp Koen Deforche, 07/31/2013 12:29 PM
inform.cpp (779 Bytes) inform.cpp Koen Deforche, 07/31/2013 01:09 PM
Actions #1

Updated by Koen Deforche over 10 years ago

  • File inform.cpp inform.cpp added
  • Status changed from New to Feedback
  • Assignee set to Koen Deforche

Hey Saif,

I can't reproduce this? Can you modify the attached test case to reproduce this?

Regards,

koen

Actions #2

Updated by Saif Rehman over 10 years ago

Oh sorry. Parent CSS classes are Wt-form and Wt-fields. On a mobile cant edit sorry.

c->addStyleClass("Wt-form");
c->addStyleClass("Wt-fields");
Actions #3

Updated by Koen Deforche over 10 years ago

Hey Saif,

No luck. I've also nested the containers since otherwise the styles from form.css would not even apply. See modified test-case.

Regards,

koen

Actions #4

Updated by Michael Knopke over 10 years ago

Saif,

maybe I misunderstand the issue here, but make sure to use the Bootstrap theme because otherwise the icon is not set.

Actions #5

Updated by Saif Rehman over 10 years ago

The problem is not with boostrap theme. The problem is with the default theme.

Simply comment the setTheme and the icon will disappear. However it is still clickable and the DatePicker does show up.

//setTheme(new WBootstrapTheme());

I just noticed that it doesn't show up without those 2 css classes either. Is this a bug or am I missing a file?

docroot is correctly set and the resource folder is there.

Actions #6

Updated by Koen Deforche over 10 years ago

  • Subject changed from WDateEdit with parent css style class Wt-form to WDateEdit is not styled in WCssTheme
  • Status changed from Feedback to InProgress
  • Target version set to 3.3.1

Hey,

Indeed, for the normal CSS theme we do not have proper styling of WDateEdit. But it's not affected by the context of the WDateEdit (as the subject suggested; I've changed it now).

Regards,

koen

Actions #7

Updated by Koen Deforche over 10 years ago

  • Status changed from InProgress to Resolved

A fix with a basic (non-fancy) styling is on its way.

Actions #8

Updated by Koen Deforche over 10 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF