Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 3    Views: 65

Jake Chasan
Veteran developer
Profile
Posts: 1685
Reg: May 13, 2011
location unknow...
29,650
03/20/13 07:56 PM (12 years ago)

Menu with Buttons Scroll Problem

Hi All, I am using the Menu with Buttons, and have about 17 Items. I have the size of the buttons set to 137 (Small Device which displays 2 across). It will not scroll to the bottom of the items, It always stops scrolling about an inch from the last item. Any ideas? Jake
 
MGoBlue
Apple Fan
Profile
Posts: 980
Reg: Jun 07, 2011
Gold River, CA
10,600
like
03/20/13 08:52 PM (12 years ago)
In BT_screen_menuButtons.m search for //grid (it's around line 404). Change the value 1.5 into 0.25. That worked for me. You should experiment a bit with this value to get the results you want. //grid if([buttonLayoutStyle isEqualToString:@grid] || [buttonLayoutStyle isEqualToString:@]){ contentWidth = deviceWidth; contentHeight = ((boxHeight + labelHeight) * (numButtons + 10)) / buttonsPerRow - (deviceHeight * 1.5); <<<--- CHANGE THIS VALUE if(contentHeight < deviceHeight) contentHeight = (deviceHeight + 50); self.myScrollView.frame = CGRectMake(0, 0, deviceWidth, deviceHeight); self.myScrollView.contentSize = CGSizeMake(contentWidth, contentHeight); }
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
03/20/13 10:31 PM (12 years ago)
Nice, @MGoBlue! We need to start documenting these little workaround somewhere, so we don't loose track of them! Mark
 
LeonG
Apple Fan
Profile
Posts: 694
Reg: Nov 08, 2011
Hamburg
17,740
like
05/07/13 04:08 PM (12 years ago)
Thanks MGBlue, 0.65 worked for me :-)
 

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.