Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

bugfix: size datePicker correctly if started in landscape mode

  • Loading branch information...
commit 6a9eb77bf2e79857bbaa001e09e68bcead780333 1 parent e4ef941
@reednj authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 Source/TDDatePickerController.m
View
6 Source/TDDatePickerController.m
@@ -15,6 +15,12 @@ -(void)viewDidLoad {
[super viewDidLoad];
datePicker.date = [NSDate date];
+
+ // we need to set the subview dimensions or it will not always render correctly
+ // http://stackoverflow.com/questions/1088163
+ for (UIView* subview in datePicker.subviews) {
+ subview.frame = datePicker.bounds;
+ }
}
// Override to allow orientations other than the default portrait orientation.
Please sign in to comment.
Something went wrong with that request. Please try again.