Discussion Forums  >  Self Hosted Control Panels

Replies: 5    Views: 124

andydahl
Aspiring developer
Profile
Posts: 209
Reg: Jul 20, 2011
Villa Grove
4,540
10/28/12 01:33 PM (13 years ago)

Button menu won't scroll up to reveal bottom row of buttons

My home screen is a Menu Buttons screen, with a bottom tab layout. The problem is, the screen will not scroll "up" enough to reveal the buttons on the bottom row. This screen does scroll, just not high enough. Here's a screen shot of the home screen scrolled as high as it will go. https://www.dropbox.com/s/35ny38x2ljauge0/scrolling-issue.png This happens on every simulator hardware (iphone, iphone-retina & iPhone 4 inch) and is present on my iPhone 5. Anyone run into issues like this? I'm happy to send the project your way if you can help. This is on a Self-hosted control panel.
 
MacApple
Apple Fan
Profile
Posts: 4675
Reg: Oct 25, 2010
USA
61,150
like
10/28/12 01:48 PM (13 years ago)
Hey Andy. There is a simple fix for this, can't remember which line of code needs changing but it relates to the screen size. Have a search on forum for scrolling issues or button menu issues and you'll find the fix. If you can't get it I'll post back when home on laptop. Happy Sunday!
 
andydahl
Aspiring developer
Profile
Posts: 209
Reg: Jul 20, 2011
Villa Grove
4,540
like
10/28/12 01:50 PM (13 years ago)
Thanks MacApple! I've been messing with the sizes, but I probably haven't found the right section yet! Appreciate the confirmation that it's not just my install! :) I'll dig a bit deeper... :) Andy
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
10/28/12 01:54 PM (13 years ago)
Edit* Sorry, I've got an Android fix, just noticed you're iphone...
 
andydahl
Aspiring developer
Profile
Posts: 209
Reg: Jul 20, 2011
Villa Grove
4,540
like
10/28/12 01:57 PM (13 years ago)
Thank you all for your help! Found the answer here: https://www.buzztouch.com/forum/thread.php?tid=F78CEBC7B90666266349B95&fid=BC70C36A743CD4FAD95D17F&sortColumn=FT.id&sortUpDown=&currentPage=6 Changed the deviceHeight under Grid layout to 0.25 (was 1.5) ***** //grid if([buttonLayoutStyle isEqualToString:@"grid"] || [buttonLayoutStyle isEqualToString:@""]){ contentWidth = deviceWidth; contentHeight = ((boxHeight + labelHeight) * (numButtons + 10)) / buttonsPerRow - (deviceHeight * 0.25); if(contentHeight < deviceHeight) contentHeight = (deviceHeight + 50); self.myScrollView.frame = CGRectMake(0, 0, deviceWidth, deviceHeight); self.myScrollView.contentSize = CGSizeMake(contentWidth, contentHeight); } *****
 
MacApple
Apple Fan
Profile
Posts: 4675
Reg: Oct 25, 2010
USA
61,150
like
10/28/12 02:28 PM (13 years ago)
That's the one, need to bookmark it! @Raveyd - Robbed of 3pts.
 

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.