Bug #2075
closedWDateEdit is not styled in WCssTheme
0%
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
Updated by Koen Deforche over 11 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
Updated by Saif Rehman over 11 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");
Updated by Koen Deforche over 11 years ago
- File inform.cpp inform.cpp added
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
Updated by Michael Knopke over 11 years ago
Saif,
maybe I misunderstand the issue here, but make sure to use the Bootstrap theme because otherwise the icon is not set.
Updated by Saif Rehman over 11 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.
Updated by Koen Deforche over 11 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
Updated by Koen Deforche over 11 years ago
- Status changed from InProgress to Resolved
A fix with a basic (non-fancy) styling is on its way.
Updated by Koen Deforche over 11 years ago
- Status changed from Resolved to Closed