Project

General

Profile

Actions

Bug #2655

closed

WDateEdit calendar not closing on selection

Added by Michael Knopke almost 11 years ago. Updated almost 11 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
02/11/2014
Due date:
% Done:

0%

Estimated time:

Description

Not sure if this is a bug or intended:

  • previously when using the popup calendar widget, it would auto-close after a date has been selected
  • now one needs to click outside (change focus) to close it

Most of the calendar widgets I know close after selection, which makes them easier to use.

So if this is intended: I vote for reestablishing the old behavior.

Tested with latest master: 813a601f4fcdaae4b8af0c31b3f717b2809f922f


Files

calendar.png (1.48 KB) calendar.png Michael Knopke, 02/11/2014 03:54 PM
Actions #1

Updated by Michael Knopke almost 11 years ago

Just to add a minor issue: it seems that the preferred height of this WDateEdit is wrong (using bootstrap theme). For me the height is chosen on the lineEdit height, but the little icon seems to be bigger and gets cropped.

Actions #3

Updated by Koen Deforche almost 11 years ago

  • Status changed from New to Resolved
  • Assignee set to Koen Deforche
  • Target version set to 3.3.2

Hey,

You can actually get the behaviour you want using edit~~calendar()~~>setSingleClickSelect(true), but I've also updated my git copy to make this the default behaviour.

Regards,

koen

Actions #4

Updated by Michael Knopke almost 11 years ago

Sorry, should have seen this myself, thanks will try.

Regards,

Michael

Actions #5

Updated by Michael Knopke almost 11 years ago

I tested the proposed change and it closes the calendar, but there seems to be a bug in combination with setEmptyText()

  • if setEmptyText("something") is set, then the calendar widget will close without applying the selected date
  • also, the setSingleClickSelect method is now deprecated and I tried the recommended setSelectionMode(Wt::SingleSelection) but it doesn't work

Please reopen the issue

Actions #6

Updated by Koen Deforche almost 11 years ago

Hey,

I've entered this as a separate issue: #2657

Regards,

koen

Actions #7

Updated by Koen Deforche almost 11 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF