Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 7    Views: 32

MadRod
Aspiring developer
Profile
Posts: 1853
Reg: Apr 12, 2012
Lisbon
27,930
05/10/14 04:26 PM (10 years ago)

Menu Advanded gap between nag bar and first row

I'm using Menu Image Advanced without a header, but for some reason if the Navigation bar is set to transparent or solid, there appears a big gap between the nav bar and the first row of the menu. Any suggestions? Thanks, Miguel
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
05/11/14 01:10 AM (10 years ago)
Two lines in a 5 inch space, with so many badges, lol! I think you might have the most BT badges available to the common man :) So, with respect to MenuWithImageAdvanced, I think I see a little glitch that might affect your situation. I'm only guessing, because I always use images, so this situation hasn't occured to me yet… But there is a part of the config page for the plugin in the control panel (Header Image) that gives you a choice whether to use an image or not. You 'MUST' set this to either YES or NO. If you 'leave it alone' the JSON will not be included in the BT_config.txt file, and there is a parameter in the Cr_menu_advanced.m file around line 90 that 'tests' for the value, and if not found, will SET it to 'YES' by default. I'd change that to 'NO' just to be safe. From this: NSString *hasImage = [BT_strings getJsonPropertyValue:self.screenData.jsonVars nameOfProperty:@"hasImage" defaultValue:@"YES"]; to this: NSString *hasImage = [BT_strings getJsonPropertyValue:self.screenData.jsonVars nameOfProperty:@"hasImage" defaultValue:@"NO"]; Otherwise, the code Chris wrote for this excellent plugin should work fine… and works fine without any alteration 'if' you set the 'hasImage' setting in the control panel. Hope this clears things up a bit for you! Cheers! -- Smug
 
MadRod
Aspiring developer
Profile
Posts: 1853
Reg: Apr 12, 2012
Lisbon
27,930
like
05/11/14 11:17 AM (10 years ago)
Hi Smug, thanks. No thats not it. And I had it checked to no in the control panel. Its not a header problem. The gap is between the nag bar and the rows... there should be somewhere in the code where it sets where the first row starts, but I can't find it. Thanks Miguel
 
Niraj
buzztouch Evangelist
Profile
Posts: 2943
Reg: Jul 11, 2012
Cerritos
37,930
like
05/11/14 03:54 PM (10 years ago)
Miguel -- go back to what we learned at CodeCamp ... Hint is "frame" :-) Other possibility is contentInset. -- Niraj
 
MadRod
Aspiring developer
Profile
Posts: 1853
Reg: Apr 12, 2012
Lisbon
27,930
like
05/12/14 01:52 AM (10 years ago)
Hi Niraj, yes I tried looking at that, but not much luck. I also notice that it only happens when I use rounded corners. if I select squared corners, the row goes up....
 
MadRod
Aspiring developer
Profile
Posts: 1853
Reg: Apr 12, 2012
Lisbon
27,930
like
05/12/14 01:59 AM (10 years ago)
I changed the values at the generate the frame for table view right below image. It seems to be working. Thanks guys. Miguel
 
Niraj
buzztouch Evangelist
Profile
Posts: 2943
Reg: Jul 11, 2012
Cerritos
37,930
like
05/12/14 08:57 PM (10 years ago)
He rocks with Vegas in his mind! :-)
 
MadRod
Aspiring developer
Profile
Posts: 1853
Reg: Apr 12, 2012
Lisbon
27,930
like
05/13/14 01:20 AM (10 years ago)
lol
 

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.