Ticket #4162 (closed bug: worksforme)

Opened 6 years ago

Last modified 6 years ago

Clear/Close buttons not visible.

Reported by: thzero Owned by:
Priority: minor Milestone: 1.7
Component: ui.datepicker Version: 1.6rc6
Keywords: Cc:
Blocking: Blocked by:

Description

No amount of settings allow the clear and close buttons to show.

You can edit the code and change the var controls = '<div class="ui-datepicker-controls"...>' to '<div class=""..>' or in the css set the 'ui-datepicker-controls' style to remove the "display:none".

However this brings up a secondary issue. The ui code surrounds the "clear" and "close" with div tags so the "Clear" and "Close" appear vertically aligned to the left which looks bad. As all the "HTML" is embedded in the source, its impossible to tweak it they way you want. At very least doing something akin to the following for the controls section looks better, and requires less vertical room (you generally have more horizontal than vertical)...

<div class="ui-datepicker-controls"> <span class="ui-datepicker-clear"></span> <span class="ui-datepicker-close"></span> </div>

ui-datepicker-controls { text-align: right; } ui-datepicker-clear { float: left; } ui-datepicker-close { text-align: right; }

Change History

comment:1 Changed 6 years ago by joern.zaefferer

  • Milestone changed from TBD to 1.6

comment:2 Changed 6 years ago by rdworth

  • Milestone changed from 1.7 to 1.8

comment:3 Changed 6 years ago by scott.gonzalez

  • Status changed from new to closed
  • Resolution set to worksforme
  • Milestone changed from 1.8 to 1.7

The clear button was removed in 1.7 and the close button works fine, see the demo at  http://jqueryui.com/demos/datepicker/#buttonbar

Note: See TracTickets for help on using tickets.