Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 6    Views: 74

Susan Metoxen
buzztouch Evangelist
Profile
Posts: 1706
Reg: May 01, 2011
Hopkins, Minnes...
26,260
09/20/12 10:28 AM (11 years ago)

Button Menu iPad Scrolling Issue on Grid Format

I am using the Button Menu for an app, and have played with it so it all looks nice. But on the iPad, there is a problem with scrolling to the bottom of the page, only when the buttons are in a grid pattern. I have a workaround...I just made the buttons smaller so the users don't have to scroll. But if anyone knows a quick solution then I would love to know it. Thank you!
 
MacApple
Apple Fan
Profile
Posts: 4674
Reg: Oct 25, 2010
USA
61,140
like
09/20/12 10:46 AM (11 years ago)
Hey Susan. The screen BT_screen_menuButtons.m has a value in it that you can change to increase the page size. Think this maybe the issue. Will have a peek and see if I'm right or indeed if I can find it.
 
MGoBlue
Apple Fan
Profile
Posts: 980
Reg: Jun 07, 2011
Gold River, CA
10,600
like
09/20/12 10:57 AM (11 years ago)
Hey Susan, This will fix the issue: In BT_screen_menuButtons.m go to line 404 and change the value 1.5 to 0.25. That worked for me me. Maybe you should experiment a bit with this value. //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); } Here's the original thread: http://www.buzztouch.com/forum/thread.php?tid=D4171AB69A804A4001802F3&command=isSearching&currentPage=1&topicTitle=scroll&createdBy=&repliedBy=&minViews=-1&maxViews=-1&minReplies=-1&maxReplies=-1&forumCategory=
 
MacApple
Apple Fan
Profile
Posts: 4674
Reg: Oct 25, 2010
USA
61,140
like
09/20/12 11:11 AM (11 years ago)
Nice one MGoblue, saved me the finger work. Need to bookmark that thread as will need it soon. Friday yet?
 
Susan Metoxen
buzztouch Evangelist
Profile
Posts: 1706
Reg: May 01, 2011
Hopkins, Minnes...
26,260
like
09/20/12 01:23 PM (11 years ago)
Thank you so much, @MacApple and @MGoBlue! Thank you also for responding so quickly!
 
AlmaR
Lost but trying
Profile
Posts: 73
Reg: Jun 13, 2011
location unknow...
5,630
like
09/23/12 04:22 PM (11 years ago)
Cool! I had the same problem and it is now fixed! Thanks. Just a note: it says "change the value 1.5 to 0.25" but in the example code it changes it for 0.86.
 
AlmaR
Lost but trying
Profile
Posts: 73
Reg: Jun 13, 2011
location unknow...
5,630
like
09/24/12 06:49 AM (11 years ago)
Edit, sorry.
 

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.