diff --git a/iphone/Classes/LauncherView.h b/iphone/Classes/LauncherView.h index 87759038135..5c1429f0a98 100644 --- a/iphone/Classes/LauncherView.h +++ b/iphone/Classes/LauncherView.h @@ -71,6 +71,7 @@ - (void)beginEditing; - (void)endEditing; - (void)recreateButtons; +- (void)layoutButtons; - (LauncherItem*)itemForIndex:(NSInteger)index; - (NSArray*)items; @@ -102,4 +103,4 @@ @end -#endif \ No newline at end of file +#endif diff --git a/iphone/Classes/TiUIDashboardView.m b/iphone/Classes/TiUIDashboardView.m index aeabac393a2..5930a714c18 100644 --- a/iphone/Classes/TiUIDashboardView.m +++ b/iphone/Classes/TiUIDashboardView.m @@ -52,10 +52,7 @@ -(void)frameSizeChanged:(CGRect)frame bounds:(CGRect)bounds if (!CGRectIsEmpty(bounds)) { [TiUtils setView:launcher positionRect:bounds]; - if(launcher.editing == NO) - { - [launcher recreateButtons]; - } + [launcher layoutButtons]; } [super frameSizeChanged:frame bounds:bounds]; }