⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

Stop flexigrid action icon layout problem with   ?



DrPaul

DrPaul
  • profile picture
  • Member

Posted 08 December 2013 - 16:00 PM

Hi,

 

What a great piece of code! 8 weeks in, and I've been able to deliver a major Access->MySQL migration.

 

Slowly starting to get to grips with the underlying structure, and would like to start tidying up the odd item.

 

Using flexigrid I have added a number of actions to some display rows and I want to "weld" the icons together so that they stay in a line - the screen layout adds some errant extra lines if the screen width is reduced.

 

Working in HTML I would simply use non-breaking spaces between the images to achieve this - have taken an initial look through the code, but cannot fathom out where GC is outputting the action hrefs. There is certainly a lot of redundant white space when I view the page source.

 

Can anyone point me in the right direction?


Amit Shah

Amit Shah
  • profile picture
  • Member

Posted 09 December 2013 - 04:01 AM

Well DrPaul

 

I will suggest you look up into the CSS .. try working with firebug where u can instantly alter the CSS .. and see the effect / output and whatever changes you used to fix it, go back in the said CSS and set it there.

 

Hope this will help you fix up your requirement.

 

Happy GCing :)


DrPaul

DrPaul
  • profile picture
  • Member

Posted 09 December 2013 - 11:25 AM

Hi Amit,

 

Thanks for the pointer, I hadn't thought of looking at the CSS, I was trying to find where in the PHP code the actions were added.

 

MVC and Ajax give a great user experience, but de-bugging the code makes my brain hurt! :-) Don't think I've debugged code using in-line "print statements" since I was working in BASIC in the 1980's.

 

What confuses me is that it's easy to find the function add_action() definition, but that function doesn't seem to be called by name anywhere. Still, it's early days - I've only been using GC for two months, and have never used CI before either. Think it will repay some "under the bonnet" work, and hope to be able to give some code back to the community if I get anything working.


Amit Shah

Amit Shah
  • profile picture
  • Member

Posted 09 December 2013 - 14:43 PM

sure brother ... that will be great


DrPaul

DrPaul
  • profile picture
  • Member

Posted 17 June 2014 - 17:24 PM

As per my post in the thread regarding opening actions in a _blank page, a bit of hacking is required to get rid of the white space in the template file which causes this behaviour:

 

"While we're on the subject of hacking list.php :-)

 

If you remove all of the HTML white space inside the <div class='tools'> on lines 37 to 53 or so of list.php, then all of the add_action() hrefs will be output without that white space between them and will behave better if the user resizes the browser window, in that they will stay "lined up" for as long as possible."