Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
107
Setting the height of a WebListbar in javascript
posted

HI,

How do use javascript to set up the weblistbar height altitude?

  • 10
    posted

    Hi Everyone,

    Using a percentage value with the height property will only scale an element to a size as large as the parent element. So if you have this:

     <div id="parent">
        <div id="child" style='width:49%;height:300px'></div>
        <table style='width:50%;height:100%'>
         ...
        </table>
     </div>

    the table will scale out to 300px because the parent div is 300px high due to the other child element.

    Regards
    photo recovery
    http://www.datadoctor.biz

  • 12679
    Verified Answer
    posted

    Hello joe1985,

    There is no built in api for this but you would be able to get the DOM element and then through style object to set its height. CSOM API here :  

    Hope this helps.