0
Welcome Guest! Login
0 items Join Now

SOLVED. versatility 4 and modules height

    • Maxor's Avatar
    • Maxor
    • Newbie
    • Posts: 5
    • Thanks: 0

    SOLVED. versatility 4 and modules height

    Posted 13 years 2 weeks ago
    • Hello
      Please help.
      Template versatility4. Accordion modules installed in the user1, user2, user3 ... and other user* position, stretch main-col up to 2000-3000 px ...
      Here's an example:
      dev2.provyborg.ru/

      Please help me... :cry:
    • Maxor's Avatar
    • Maxor
    • Newbie
    • Posts: 5
    • Thanks: 0

    Re: SOLVED. versatility 4 and modules height

    Posted 13 years 2 weeks ago
    • In a file 'roksameheight.js' commented out lines
      var maxHeight = function(classname) {
           var divs = document.getElements(classname);
           var max = 0;
           divs.each(function(div) {
                max = Math.max(max, div.getSize().size.y);
           });
           divs.setStyle('height', max);
           return max;

      And in a file 'roksameheight-mt1.2.js' lines
      var maxHeight = function(classname) {
           var divs = document.getElements(classname);
           var max = 0;
           divs.each(function(div) {
                max = Math.max(max, div.getSize().y);
           });
           divs.setStyle('height', max);
           return max;
      };
       
      window.addEvent('load', function() { 
           if (!Browser.Engine.trident4) {
                maxHeight('#mainmodules .block div div div');
                maxHeight('#mainmodules2 .block div div div');
           };
           maxHeight('div.main-height');
      });
    • Stratos's Avatar
    • Stratos
    • Rocketeer
    • Posts: 56
    • Thanks: 0
    • Web & Print Design and Development

    Re: SOLVED. versatility 4 and modules height

    Posted 13 years 2 weeks ago
    • I've always edited just the file roksameheight.js.

      Edit the code as follows:
       
      /* Commented out for expanding left Column Module
      window.addEvent('load', function() { 
          if (!window.ie6) {
              maxHeight('#mainmodules .block div div div');
              maxHeight('#mainmodules2 .block div div div');
          };
          maxHeight('div.main-height');
      });
      */
       


      With the above "commented out" add this after the */:
       
      window.addEvent('load', function() {
          maxHeight.delay(2000, maxHeight, 'sameheight'); 
      });
       

Time to create page: 0.053 seconds