We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c300c4e commit dab75bcCopy full SHA for dab75bc
CodenameOne/src/com/codename1/ui/spinner/Picker.java
@@ -505,6 +505,16 @@ private DateSpinner3D createDatePicker3D() {
505
if (defaultValue.getTime() > endDate.getTime()) {
506
defaultValue = startDate;
507
}
508
+ } else if (startDate != null) {
509
+ out.setDateRange(startDate, null);
510
+ if (defaultValue.getTime() < startDate.getTime()) {
511
+ defaultValue = startDate;
512
+ }
513
+ } else if (endDate != null) {
514
+ out.setDateRange(null, endDate);
515
+ if (defaultValue.getTime() > endDate.getTime()) {
516
+ defaultValue = endDate;
517
518
519
if (value != null) {
520
out.setValue(value);
0 commit comments