Opened 11 years ago

Closed 11 years ago

#4162 closed bug (worksforme)

Clear/Close buttons not visible.

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

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 (3)

comment:1 Changed 11 years ago by Jörn Zaefferer

Milestone: TBD1.6

comment:2 Changed 11 years ago by rdworth

Milestone: 1.71.8

comment:3 Changed 11 years ago by Scott González

Milestone: 1.81.7
Resolution: worksforme
Status: newclosed

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.