Skip to content
This repository has been archived by the owner on May 29, 2019. It is now read-only.

Commit

Permalink
fix(timepicker): fix widths of inputs when inside form-inline
Browse files Browse the repository at this point in the history
Set timpicker widths on input elements to fix display in inline forms
  • Loading branch information
Mike Fisher authored and wesleycho committed Mar 25, 2015
1 parent 13bd516 commit 8e89440
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions template/timepicker/timepicker.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@
<td ng-show="showMeridian"></td>
</tr>
<tr>
<td style="width:50px;" class="form-group" ng-class="{'has-error': invalidHours}">
<input type="text" ng-model="hours" ng-change="updateHours()" class="form-control text-center" ng-mousewheel="incrementHours()" ng-readonly="readonlyInput" ng-disabled="disabled" maxlength="2">
<td class="form-group" ng-class="{'has-error': invalidHours}">
<input style="width:50px;" type="text" ng-model="hours" ng-change="updateHours()" class="form-control text-center" ng-mousewheel="incrementHours()" ng-readonly="readonlyInput" ng-disabled="disabled" maxlength="2">
</td>
<td>:</td>
<td style="width:50px;" class="form-group" ng-class="{'has-error': invalidMinutes}">
<input type="text" ng-model="minutes" ng-change="updateMinutes()" class="form-control text-center" ng-readonly="readonlyInput" ng-disabled="disabled" maxlength="2">
<td class="form-group" ng-class="{'has-error': invalidMinutes}">
<input style="width:50px;" type="text" ng-model="minutes" ng-change="updateMinutes()" class="form-control text-center" ng-readonly="readonlyInput" ng-disabled="disabled" maxlength="2">
</td>
<td ng-show="showMeridian"><button type="button" class="btn btn-default text-center" ng-click="toggleMeridian()">{{meridian}}</button></td>
</tr>
Expand Down

0 comments on commit 8e89440

Please sign in to comment.