Width jumps to 100% instead of min when sScrollY is set

Width jumps to 100% instead of min when sScrollY is set

benhoeferbenhoefer Posts: 1Questions: 0Answers: 0
edited May 2011 in Bug reports
I need a y-scroll bar but when I use this option:

"sScrollY": "200px",

The width jumps to 100% width instead of keeping the table as small in the x direction as possible. Is there a way around this? I can fix it by fixing the width of the table div container, but this table is dynamic and so it is difficult to set a fixed width for every application. Thoughts?

Ben

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,470 Site admin
    I'm afraid that this is a required part of the column matching algorithm for the scrolling feature. You could try commenting it out in the code (o.nTable.style.width = "100%";) and see what happens, but I don't believe it will be particularly resilient. As you say, modifying the width of the wrapper is the best way of dealing with this.

    Allan
This discussion has been closed.