Discussion Forums  >  Uncategorized

Replies: 3    Views: 134

javooooo
buzztouch Evangelist
Profile
Posts: 719
Reg: Jun 17, 2011
Sydney, Austral...
18,490
02/04/12 05:25 PM (12 years ago)

Grid Buttons won't scroll

Hi All, I've got 7 buttons arranged in a grid (4 rows of 2). I've enabled scrolling, however when i try and scroll down the page in the sim or on my test devices the menu just springs back up again. For some reason, it would scroll and stay on the lower buttons. Does anyone have any ideas as to what could cause this issue? Cheers.
 
Fred@mySkylla com
Android Fan
Profile
Posts: 5259
Reg: Oct 03, 2011
location unknow...
62,560
like
02/04/12 05:45 PM (12 years ago)
I don't remember the solution, but I remember it was discussed before (Oct-Dec) sorry I can be more specific. Fred
 
javooooo
buzztouch Evangelist
Profile
Posts: 719
Reg: Jun 17, 2011
Sydney, Austral...
18,490
like
02/04/12 06:29 PM (12 years ago)
I got it working a little better by adding some blank buttons to the bottom. Seems to been a temp solution.
 
Captain597
Aspiring developer
Profile
Posts: 32
Reg: Jan 17, 2012
Cincinnati
620
like
02/06/12 07:51 PM (12 years ago)
I had the same problem, and this worked for me: In BT_screen_menuButtons.m go to line 404 and change the value 1.5 into 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); }
 

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.