scrollX Table Width Question

scrollX Table Width Question

atlanatlan Posts: 3Questions: 0Answers: 0
edited March 2013 in General
Hey all,

I am somehow lost on controlling the width of a table that has the scrollX option set. You can find the example here:
Debug Code: eholip

When you open the page, you will probably (depending on your resolution) notice that the table spans far beyond the page.
Somehow I thought that enabling scrolling on the x-axis should exactly avoid that.
In the end I would like to have the table span 3/4 of a page.

Am I doing something wrong or did I misinterpret the function?
I tried several css things to get this under control, but did not succeed. I have to admit though that I am not exactly a css lover ;-)


  • atlanatlan Posts: 3Questions: 0Answers: 0
    Hm, nevermind. I finally got it working.
    The scrollX parameter unfortunately does not work for me. No matter what value I put in there (100px, 50%, etc) the table always spans beyond he page.

    By removing scrollXInner and adjusting the outer div's width that is on the page, I got my desired layout.

    I still would like to know if I am doing something fundamentally wrong or if there is a bug with the scrollX parameter.

  • allanallan Posts: 49,494Questions: 1Answers: 7,280 Site admin
    sScrollX should never be anything other than 100%. If you want a different container size, then you should make the container size different. Also sScrollXInner should only really be used for demos - I regret putting it in actually...

  • atlanatlan Posts: 3Questions: 0Answers: 0
    Thx Allan for the prompt response!
    That explains. I am good now.
This discussion has been closed.