Permalink
Browse files

bugfix: size datePicker correctly if started in landscape mode

  • Loading branch information...
1 parent e4ef941 commit 6a9eb77bf2e79857bbaa001e09e68bcead780333 @reednj committed Nov 25, 2010
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.

0 comments on commit 6a9eb77

Please sign in to comment.