Results 1 to 9 of 9

Thread: ScrollingPanel from MetaBuilders.com

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jan 2001
    Location
    Denmark
    Posts
    1,049

    ScrollingPanel from MetaBuilders.com

    How do I hide the horizontal scrollbar? When I say "auto" both the vertical and horizontal scrollbar are shown?
    http://www.metabuilders.com/Tools/ScrollingPanel.aspx

  2. #2
    Frenzied Member dj4uk's Avatar
    Join Date
    Aug 2002
    Location
    Birmingham, UK Lobotomies: 3
    Posts
    1,131

    Re: ScrollingPanel from MetaBuilders.com

    Unfortunately Internet Explorer doesn't allow you to force a horizontal scrollbar not to be shown unlike Mozilla:
    overflow

    Mozilla supports some additional values for the overflow property that are not in standard CSS. The overflow property is used to specify what happens when the content is too large for the container.
    * -moz-scrollbars-horizontal: Indicates that horizontal scrollbars should appear.
    * -moz-scrollbars-vertical: Indicates that vertical scrollbars should appear.
    * -moz-scrollbars-none: Indicates that no scrollbars should appear.
    Note: you'd have to add this behaviour to the MetaBuilders Scrolling Panel as I do not think it supports it at present.

    The only other thing you can do is stop the contents of the scrolling panel from overflowing in the horizontal direction - might be possible by having another panel inside the scrolling panel with a fixed width. But this might not work depending on what is inside the scrolling panel.

    What are you storing inside? DataGrid?

    DJ

    If I have been helpful please rate my post. If I haven't tell me!

  3. #3

    Thread Starter
    Frenzied Member
    Join Date
    Jan 2001
    Location
    Denmark
    Posts
    1,049

    Re: ScrollingPanel from MetaBuilders.com

    No it's just a fixed height section containing news, I have attacthed an image.
    Maybe I can solve this in a different way?
    Attached Images Attached Images  

  4. #4
    Frenzied Member dj4uk's Avatar
    Join Date
    Aug 2002
    Location
    Birmingham, UK Lobotomies: 3
    Posts
    1,131

    Re: ScrollingPanel from MetaBuilders.com

    I would suggest the contents within the scrolling panel have a width wider than the scrolling panel's set width. Try making the table (at least I'm guessing it's a table) within the panel slimmer. Post the generated HTML or the ASP.NET code and I'll be able to tell you for certain.

    DJ

    If I have been helpful please rate my post. If I haven't tell me!

  5. #5

    Thread Starter
    Frenzied Member
    Join Date
    Jan 2001
    Location
    Denmark
    Posts
    1,049

    Re: ScrollingPanel from MetaBuilders.com

    Quote Originally Posted by dj4uk
    I would suggest the contents within the scrolling panel have a width wider than the scrolling panel's set width. Try making the table (at least I'm guessing it's a table) within the panel slimmer. Post the generated HTML or the ASP.NET code and I'll be able to tell you for certain.

    DJ
    Here is my code:
    Code:
    <mbsp:ScrollingPanel id="ScrollingPanel1" runat="server" ScrollbarVisibility="auto" height="140px" width=256px>	
    															<table height=150>
    																<tr>
    																	<td>
    																			
    																			<!--<asp:DataGrid id=DataGrid1 runat="server" width=250>
    																				<AlternatingItemStyle ForeColor="Black" BackColor="#F0F9FD"></AlternatingItemStyle>
    																				<ItemStyle ForeColor="Black" Width="100px" BackColor="#EFEFEF"></ItemStyle>
    																				<HeaderStyle Font-Bold="True" ForeColor="Black" BackColor="LightGreen"></HeaderStyle>
    																			</asp:DataGrid>-->
    																			12-04-2005 <b>Pressemeddelelse</b><br>
    																			Logstor har dags dato udsendt denne pressemeddelelse som ... <a href="http://www.logstor.com">Læs mere...</a>
    																	</td>
    																</tr>
    																<tr>
    																	<td colspan=2><img src="Images/hr.jpg"></td>
    																</tr>
    																<tr>
    																	<td>
    																		12-04-2005 <b>Information til kunder</b><br>
    																		Logstor har dags dato udsendt denne pressemeddelelse som ... <a href="http://www.logstor.com">Læs mere...</a>
    																	</td>
    																</tr>
    																<tr>
    																	<td colspan=2><img src="Images/hr.jpg"></td>
    																</tr>
    																<tr>
    																	<td>
    																		12-04-2005 <b>Information til kunder</b><br>
    																		Logstor har dags dato udsendt denne pressemeddelelse som ... <a href="http://www.logstor.com">Læs mere...</a>
    																	</td>
    																</tr>
    															</table>
    														</mbsp:ScrollingPanel>

  6. #6
    Frenzied Member dj4uk's Avatar
    Join Date
    Aug 2002
    Location
    Birmingham, UK Lobotomies: 3
    Posts
    1,131

    Re: ScrollingPanel from MetaBuilders.com

    Check the width of the horizontal rule image (hr.jpg) I think you'll find it's too wide!

    DJ

    If I have been helpful please rate my post. If I haven't tell me!

  7. #7

    Thread Starter
    Frenzied Member
    Join Date
    Jan 2001
    Location
    Denmark
    Posts
    1,049

    Re: ScrollingPanel from MetaBuilders.com

    Quote Originally Posted by dj4uk
    Check the width of the horizontal rule image (hr.jpg) I think you'll find it's too wide!

    DJ
    The width of the ruler is 250 px

  8. #8

    Thread Starter
    Frenzied Member
    Join Date
    Jan 2001
    Location
    Denmark
    Posts
    1,049

    Re: ScrollingPanel from MetaBuilders.com

    Sorry, now I understand your point. I've changed the width of the panel to 275 px, and then only the vertical scrollbar appears.
    Thanks a lot for your help!

  9. #9
    Frenzied Member dj4uk's Avatar
    Join Date
    Aug 2002
    Location
    Birmingham, UK Lobotomies: 3
    Posts
    1,131

    Re: ScrollingPanel from MetaBuilders.com

    Try taking the rulers out to see if it fixes it - looks to me like the panel has some padding which you need to take into account too!

    DJ

    If I have been helpful please rate my post. If I haven't tell me!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width