iOS: Base size of menu picker toolbar on the picker size itself

This fixes the tiny font in the UIToolbar above the UIPickerView.

Change-Id: Idc6681cd5b527c15cf5331d04ff3785304146b56
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@theqtcompany.com>
bb10
Tor Arne Vestbø 2015-03-18 15:27:41 +01:00 committed by Kai Uwe Broulik
parent ba9ac942f0
commit 4e48a8b457
1 changed files with 2 additions and 1 deletions

View File

@ -128,7 +128,8 @@ static NSString *const kSelectorPrefix = @"_qtMenuItem_";
if (m_selectedRow == -1)
m_selectedRow = 0;
self.toolbar = [[[UIToolbar alloc] initWithFrame:CGRectMake(0, 0, 100, 44)] autorelease];
self.toolbar = [[[UIToolbar alloc] init] autorelease];
self.toolbar.frame.size = [self.toolbar sizeThatFits:self.bounds.size];
self.toolbar.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
UIBarButtonItem *spaceButton = [[[UIBarButtonItem alloc]