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
2211
How To: Hide ContentPane Scrollbars CSOM?
posted

Hello all,

 I am trying to hide the scroll bars of a webdialog window. I have tried hiding them at design time but this does not seem to work so I tried from client side javascript.  It seems that the content pane is an IFrame and no mater how many ways I try to set scrolling = no it does not work.

Here si the code that i am trying to implement:

var myContentPane = dialog.get_contentPane();

myContentPane.set_scrollBars('Hidden');

 Any one see anything wrong?

Thanks,

Patrick 

 

  • 120
    posted

     Are you sure your dialog variable is properly initialized with the right value?  I ran your code and it seemed to work for me.  What's the intended purpose of this, though?  Without the scrollbar, how do you intend to view the content that doesn't fit?

           Jacob