CollapsiblePanel and scrollbars

Last post 04-14-2008 10:01 PM by Jonathan Shen – MSFT. 8 replies.

Sort Posts:

  • CollapsiblePanel and scrollbars

    04-07-2008, 11:35 AM
    • Member
      1 point Member
    • Lemon.oO0
    • Member since 04-06-2008, 4:05 PM
    • Posts 7

     With TargetControlID="Panel1" and ScrollContents="true" I get a horizontal scrollbar regardless of the contents of Panel1. I really want to get rid of this.

    (I use the toolkit)

    Anyone?

  • Re: CollapsiblePanel and scrollbars

    04-07-2008, 11:42 AM

    Get rid of the ScrollContents="true".  Your panel will then behave like you would normally expect a panel to.

    When you ask a question, remember to click "mark as answered" when you get a reply which answers your question.


    My latest ASP.NET AJAX blog entries.
  • Re: CollapsiblePanel and scrollbars

    04-07-2008, 11:14 PM

    Use ScrollContents="false" & see it

    Chetan Sarode
    Software Engineer,
    Approva Systems Pvt Ltd,
    Pune, India.
  • Re: CollapsiblePanel and scrollbars

    04-08-2008, 4:57 AM
    • Member
      1 point Member
    • Lemon.oO0
    • Member since 04-06-2008, 4:05 PM
    • Posts 7

    I have tried that without success. I also tried to set ScrollBars="Auto" on the Panel but without any effect... Forgot to mention that the collapsiblepanel is inside an updatepanel..

  • Re: CollapsiblePanel and scrollbars

    04-08-2008, 5:20 AM
    • Participant
      831 point Participant
    • Hoonius
    • Member since 07-13-2006, 8:21 AM
    • England
    • Posts 195

    Are you sure your panel is wide enough for the content inside?

    divs normally display scrollbars when there is content to scroll to in either axis.  Try setting the panel you're collapsing to a wider width and see what it is that is cauing the scrolling

  • Re: CollapsiblePanel and scrollbars

    04-09-2008, 8:19 AM
    • Member
      1 point Member
    • Lemon.oO0
    • Member since 04-06-2008, 4:05 PM
    • Posts 7

    The problem is not scrollbars not showing up, but a horizontal scrollbar I'd like to get rid of... Adjusting the panel width does not seem to affect this..

  • Re: CollapsiblePanel and scrollbars

    04-14-2008, 12:19 AM
    Answer

    Hi Lemon,

    It is a css issue rather than Ajax Control Toolkit issue.  You shall set the Panel's  overflow-x to "hidden" and set its width property.  For example,

    .collapsePanel {
             background-color:white;
             overflow-x:hidden;

            width:800px;
     }

    Best regards,

    Jonathan

    Jonathan Shen
    Microsoft Online Community Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
  • Re: CollapsiblePanel and scrollbars

    04-14-2008, 8:55 AM
    • Member
      1 point Member
    • Lemon.oO0
    • Member since 04-06-2008, 4:05 PM
    • Posts 7

    You are absolutely right! Thanks a lot Jonathan!

    One thing; overflow-x supported by all browsers? 

     

     

  • Re: CollapsiblePanel and scrollbars

    04-14-2008, 10:01 PM

    Hi Lemon,

    IE 6 and above,  Firefox 1.5 above.

    Best regards,

    Jonathan

    Jonathan Shen
    Microsoft Online Community Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Page 1 of 1 (9 items)