improve datepicker form-horizontal mode & fix bug in ButtonDropdown rendering visibility