Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 2    Views: 72

webmac
I hate code!
Profile
Posts: 82
Reg: Dec 18, 2012
youngstown
2,820
06/19/13 06:33 AM (12 years ago)

Button Menu Sizes

I have the button menu set at grid style w/ a label below the button, and button size set to 108 with a margin of 32 for small devices, and button size set to 108 with a margin of 25 for large devices. I have 21 buttons set with bounce set to on. My problems are: iOS small devices: All view OK except for the LAST ROW of buttons, then the bounce screen only allows half of a button to show. You cannot scroll to pull it up any higher to click on the button. I tried adding another row with blank buttons, but it does not help. iOS large devices: All view ok. Android small devices: All view ok. Android large devices: In vertical view, the buttons do not wrap, so a portion of the buttons are not viewable. If you view horizontally, they all show up.
 
Jake Chasan
Veteran developer
Profile
Posts: 1685
Reg: May 13, 2011
location unknow...
29,650
like
06/26/13 01:17 PM (12 years ago)
@webmac: Try this: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In BT_screen_menuButtons.m search for "//grid", then change the value from value 1.5 to another number, like 0.25. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ //grid if([buttonLayoutStyle isEqualToString:@grid] || [buttonLayoutStyle isEqualToString:@]){ contentWidth = deviceWidth; contentHeight = ((boxHeight + labelHeight) * (numButtons + 10)) / buttonsPerRow - (deviceHeight * 0.86); // changed: 0.86 was 1.5! if(contentHeight < deviceHeight) contentHeight = (deviceHeight + 50); self.myScrollView.frame = CGRectMake(0, 0, deviceWidth, deviceHeight); self.myScrollView.contentSize = CGSizeMake(contentWidth, contentHeight); } ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ From: http://www.buzztouch.com/forum/thread.php?tid=F78CEBC7B90666266349B95 Jake
 
webmac
I hate code!
Profile
Posts: 82
Reg: Dec 18, 2012
youngstown
2,820
like
06/27/13 06:16 AM (12 years ago)
Thank you...this fixed it.
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.