fix tool palette during device rotations

This commit is contained in:
Justin R. Miller
2014-04-10 11:30:27 -07:00
parent 9f5a313e37
commit 9ccfc1975c

View File

@@ -146,7 +146,7 @@ class MBXMapView
paletteWidth,
paletteHeight)];
self.palette.backgroundColor = [UIColor colorWithWhite:0 alpha:alpha];
self.palette.autoresizingMask = UIViewAutoresizingFlexibleLeftMargin;
self.palette.autoresizingMask = UIViewAutoresizingFlexibleLeftMargin | UIViewAutoresizingFlexibleTopMargin | UIViewAutoresizingFlexibleBottomMargin;
self.palette.layer.cornerRadius = bufferSize;
[self.view addSubview:self.palette];
for (NSString *selectorName in selectorNames)