This is a migrated thread and some comments may be shown as answers.

TabStrip not displaying when used with masterpage and ScrollChildren="True"

2 Answers 54 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
Thomas Salt
Top achievements
Rank 1
Thomas Salt asked on 09 Feb 2009, 03:08 PM
I have a basic MasterPage with nothing in it besides the <asp:ContentPlaceHolder> and <asp:ScriptManager> tags.  I then create a content page and create the tab strip.   All the tabs will display correctly using the masterpage unless I set ScrollChildren="True".  Once I set ScrollChildren="True" then the scroll arrows show up, but the tabs disappear.  There is nothing fancy in either page, just the bare minimum needed to run the tabstrip using a masterpage.

On the contrary if I DO NOT use a master page the tab strip works as expected and I can set ScrollChildren="True". 

Can you please advise on this matter? Thank you.

2 Answers, 1 is accepted

Sort by
0
Serrin
Top achievements
Rank 1
answered on 10 Feb 2009, 07:03 PM
Hey Thomas,

That is weird indeed, I just tested it (was working on another TabStrip problem) and found no problems with a TabStrip in that setup...  Would you mind posting the code you're using (as basic as it may be for the example)?  I'll drop it into my project to see if I can get that to happen.  Also, what version of the controls are you using?
0
Thomas Salt
Top achievements
Rank 1
answered on 11 Feb 2009, 06:48 PM
I figured out what the problem was, and I'm assuming this is a bug in the TabStrip control unless I missed it somewhere in the documentation.  I had my <ContentPlaceHolder> wrapped in a <center> tag.  Ultimately it seemed that any tag (div, span, etc..) which had a text-align:center property set to the style was not displaying the tab strip correctly. 

I fixed the issue by wrapping the TabStrip in <div> tag and setting text-align:left.  Hopefully this can help someone else out!
Tags
TabStrip
Asked by
Thomas Salt
Top achievements
Rank 1
Answers by
Serrin
Top achievements
Rank 1
Thomas Salt
Top achievements
Rank 1
Share this question
or