0
Welcome Guest! Login
0 items Join Now

Suggestion regarding input styling (chronoforms related)

  • Suggestion regarding input styling (chronoforms related)

    Posted 12 years 6 months ago
    • I thought I'd post this to help anyone who encounters the same problem, but also in case Rockettheme might consider changing the way input styling works (to save me having to hack the core code!).

      The current method of input styling checkboxes and radio buttons is to place the actual element -1000px right or left of the page.

      This causes a problem with Chronoforms, which places error messages above the checkbox/radiobutton.

      The solution I used was to edit gantry-inputs.js and replace the instances of e.setStyles({position:"absolute",left:"-1000px"}
      and
      e.setStyles({position:"absolute",right:"-1000px"}

      With the following:

      e.setStyles({visibility:"hidden",marginRight:"-20px"}

      This doesn't seem to effect the functionality but it means that extensions like Chronoforms will work correctly.
    • Freshpage Web Design
    • Who?'s Avatar
    • Who?
    • Preeminent Rocketeer
    • Posts: 25562
    • Thanks: 613
    • Joomla freelancer

    Re: Suggestion regarding input styling (chronoforms related)

    Posted 12 years 6 months ago
    • Thank you very much for this. I will make sure our devs see your suggestion
    • Check my services at: Mihha-Vision
    • watashi's Avatar
    • watashi
    • Jr. Rocketeer
    • Posts: 32
    • Thanks: 0

    Re: Suggestion regarding input styling (chronoforms related)

    Posted 11 years 8 months ago
    • Hi,

      I have the same issue inside JomSocial.
      JomSocial team sends me to RocketTheme team.

      The issue is clearly described on a screenshot (radio buttons are sent outside of screen, thanks to undesired "left: -10000;".)
      dl.dropboxusercontent.com/u/56277935/Radio.jpg

      If I modify gantry-inputs.js, will it be updated with the next update of Gantry?
      In other words, is it a core hack and shall I introduce it after each upgrade?

      Thank you.
    • Who?'s Avatar
    • Who?
    • Preeminent Rocketeer
    • Posts: 25562
    • Thanks: 613
    • Joomla freelancer

    Re: Suggestion regarding input styling (chronoforms related)

    Posted 11 years 8 months ago
    • watashi's Avatar
    • watashi
    • Jr. Rocketeer
    • Posts: 32
    • Thanks: 0

    Re: Suggestion regarding input styling (chronoforms related)

    Posted 11 years 8 months ago
    • Hi Igor,

      I appreciate your reply and support.
      I can easily create customs CSS files (I have successfully done it in the past).
      I have some basic knowledge of CSS, PHP etc.
      However, I totally don't understand language of gantry-inputs.js.
      Can you point out what exact wording shall I introduce into my custom css file to overcome the bug?

      Thanks.
    • Who?'s Avatar
    • Who?
    • Preeminent Rocketeer
    • Posts: 25562
    • Thanks: 613
    • Joomla freelancer

    Re: Suggestion regarding input styling (chronoforms related)

    Posted 11 years 8 months ago
    • As I wrote, you will have to use Firebug to find css definition you need to change and override it in custom css file. Forget about gantry-inputs.js completely and focus on finding that css using Firebug
    • Check my services at: Mihha-Vision

Time to create page: 0.073 seconds