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
parent
ba9ac942f0
commit
4e48a8b457
|
|
@ -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]
|
||||
|
|
|
|||
Loading…
Reference in New Issue