Skip to content
This repository has been archived by the owner on Apr 8, 2020. It is now read-only.

iPad issue on selection, only half of the cell background is changed #4

Closed
coolrb opened this issue Aug 7, 2013 · 3 comments
Closed
Assignees

Comments

@coolrb
Copy link

coolrb commented Aug 7, 2013

I am using this project for iPad project, however on selection of menu item, only half of the cell background is changed. Please find image

navigation-menu-cell-selection

This occurs at SIMenuCell->initWithStyle where size width is 320(iPhone) but it should be 768(iPad). I tried to fix but not sure where exactly width is set.
I did a little hack by modifying width

CGRect bound = CGRectMake(self.bounds.origin.x, self.bounds.origin.y, 768, self.bounds.size.height);
self.cellSelection = [[SICellSelection alloc] initWithFrame:bound andColor:[SIMenuConfiguration selectionColor]];

@iSapozhnik
Copy link
Owner

Thanks Coolrb, for posting that issue. I will take a look on it shortly.

@coolrb
Copy link
Author

coolrb commented Aug 7, 2013

There is also another issue, I am facing wrt appearance of menu in navigation bar.
navigation-menu-appearance

As you can see, the menu does not appear at middle but some 20pixels right of middle. I tried to modify SIMenuButton but changes made are not reflected in initWithFrame. Please suggest.

@ghost ghost assigned iSapozhnik Oct 7, 2013
@iSapozhnik
Copy link
Owner

First part of your question was fixed. See 29decf6 please.
The second question... it is because of titleView. it is cantered between two bar button items. so to fix this issue you just need to have left and right bar button items the same width.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants