Using SmartGWT: /builds/SmartGWT/3.1p/LGPL/2012-12-20
Tested on FireFox 10 + 17.0, Chrome current.
We just upgraded from SmartGWT 3.0p LGPL to SmartGWT 3.1p LGPL and discovered a few issues with DateChooser css skin.
The issue we are seeing is this:
- When the end user uses the mouse and hovers over a disabled weekend and weekday, the css style used does not change to use "Over", "Selected" and "Down" suffix.
Goal:
- We would like the DateChooser widget to show the disabled weekend+weekday days as disabled style when not hovering, but when hovering use a style similar to a normal 'not disabled' style. This seems impossible now on 3.1p and we used to be able to do this on 3.0p and before.
Research:
- Checked the provided skin_styles.css which is included with each SmartGWT skin and I found the following css tags:
.dateChooserDisabledWeekday,
.dateChooserDisabledWeekdayOver,
.dateChooserDisabledWeekdayDown,
.dateChooserDisabledWeekdayDisabled,
.dateChooserDisabledWeekdaySelected,
.dateChooserDisabledWeekdaySelectedDown,
.dateChooserDisabledWeekdaySelectedOver,
.dateChooserDisabledWeekdaySelectedDisabled {
color: #cccccc;
}
{Similar for Weekend}
I assumed that since these tags exist in the SmartGWT enterprise (grey) skin, the tags would be put in use as is done when hovering over a normal enabled date chooser date, but no. FireFox FireBug and Chrome Tools shows that the css style remains "dateChooserDisabledWeekday" when hovering.
I checked the load_skin.js file for the DateChooser section, and could not find a single flag that seemed to turn on or off this functionality.
Also, DateChooser java docs does not give me any hints on this issue. I looked for a setBaseDisabledWeekday/Weekend(String ...) methods, but can only find:
public void setDisabledWeekdayStyle(String disabledWeekdayStyle)
public void setDisabledWeekendStyle(String disabledWeekendStyle)
Which has no mention of the suffixes which would be used.
http://www.smartclient.com/smartgwt/javadoc/com/smartgwt/client/widgets/DateChooser.html
Lastly, I checked the DateChooser example on the SmartGWT showcase:
http://www.smartclient.com/smartgwt/showcase/#controls_category_datechooser
This widget, when inspected in FireFox-FireBug, also shows the same behaviour (no specific Over css style used when hovering over a disabled weekend/weekday).
Any ideas?
Functionality dropped between 3.0 and 3.1?
Thank you.
Tested on FireFox 10 + 17.0, Chrome current.
We just upgraded from SmartGWT 3.0p LGPL to SmartGWT 3.1p LGPL and discovered a few issues with DateChooser css skin.
The issue we are seeing is this:
- When the end user uses the mouse and hovers over a disabled weekend and weekday, the css style used does not change to use "Over", "Selected" and "Down" suffix.
Goal:
- We would like the DateChooser widget to show the disabled weekend+weekday days as disabled style when not hovering, but when hovering use a style similar to a normal 'not disabled' style. This seems impossible now on 3.1p and we used to be able to do this on 3.0p and before.
Research:
- Checked the provided skin_styles.css which is included with each SmartGWT skin and I found the following css tags:
.dateChooserDisabledWeekday,
.dateChooserDisabledWeekdayOver,
.dateChooserDisabledWeekdayDown,
.dateChooserDisabledWeekdayDisabled,
.dateChooserDisabledWeekdaySelected,
.dateChooserDisabledWeekdaySelectedDown,
.dateChooserDisabledWeekdaySelectedOver,
.dateChooserDisabledWeekdaySelectedDisabled {
color: #cccccc;
}
{Similar for Weekend}
I assumed that since these tags exist in the SmartGWT enterprise (grey) skin, the tags would be put in use as is done when hovering over a normal enabled date chooser date, but no. FireFox FireBug and Chrome Tools shows that the css style remains "dateChooserDisabledWeekday" when hovering.
I checked the load_skin.js file for the DateChooser section, and could not find a single flag that seemed to turn on or off this functionality.
Also, DateChooser java docs does not give me any hints on this issue. I looked for a setBaseDisabledWeekday/Weekend(String ...) methods, but can only find:
public void setDisabledWeekdayStyle(String disabledWeekdayStyle)
public void setDisabledWeekendStyle(String disabledWeekendStyle)
Which has no mention of the suffixes which would be used.
http://www.smartclient.com/smartgwt/javadoc/com/smartgwt/client/widgets/DateChooser.html
Lastly, I checked the DateChooser example on the SmartGWT showcase:
http://www.smartclient.com/smartgwt/showcase/#controls_category_datechooser
This widget, when inspected in FireFox-FireBug, also shows the same behaviour (no specific Over css style used when hovering over a disabled weekend/weekday).
Any ideas?
Functionality dropped between 3.0 and 3.1?
Thank you.
Comment