| 1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> |
| 2 | <html dir="ltr" lang="en"> |
| 3 | <head> |
| 4 | <title>TabContainer CSS Glitch Tests</title> |
| 5 | |
| 6 | <script src="../boilerplate.js"></script> |
| 7 | |
| 8 | <style> |
| 9 | #tabContainer1 { |
| 10 | height: 200px; |
| 11 | margin-bottom: 50px; |
| 12 | } |
| 13 | </style> |
| 14 | |
| 15 | <script> |
| 16 | require([ |
| 17 | "dojo/parser", |
| 18 | "dijit/registry", |
| 19 | "dijit/layout/TabContainer", "dijit/layout/ContentPane", |
| 20 | "dijit/form/DropDownButton", "dijit/TooltipDialog", |
| 21 | "dojo/domReady!" |
| 22 | ], function(parser, registry, TabContainer, ContentPane){ |
| 23 | |
| 24 | parser.parse().then(function(){ |
| 25 | var tabsPane1 = registry.byId('tabContainer1'); |
| 26 | var tab1 = new ContentPane({title: "My tab 1", content: "border line to right of tab does not show (now resize your browser and the border line will appear)"}); |
| 27 | tabsPane1.addChild(tab1); |
| 28 | }); |
| 29 | }); |
| 30 | </script> |
| 31 | </head> |
| 32 | |
| 33 | <body class="claro" role="main"> |
| 34 | <h1>TabContainer CSS Glitch Tests</h1> |
| 35 | <p> |
| 36 | Collected tests for problems with missing borders for TabContainer, |
| 37 | in particular problems with the border between the tab buttons and the tab content. |
| 38 | </p> |
| 39 | |
| 40 | <h2>Borders in TooltipDialog</h2> |
| 41 | <p> |
| 42 | Open TooltipDialog and make sure the horizontal border between tab buttons and content |
| 43 | don't extend past the edge of the TabContainer. Also check that button for second tab |
| 44 | (unselected tab) is visible on IE6. |
| 45 | </p> |
| 46 | <div data-dojo-type="dijit/form/DropDownButton"> |
| 47 | <span>Show Tooltip Dialog with TabContainer</span> |
| 48 | <div id="tabTooltip" data-dojo-type="dijit/TooltipDialog" data-dojo-props='title:"Tab Container Tooltip"'> |
| 49 | <div data-dojo-type="dijit/layout/TabContainer" data-dojo-props='style:"width: 400px; height: 300px;"'> |
| 50 | <div data-dojo-type="dijit/layout/ContentPane" data-dojo-props='title:"First tab"'> |
| 51 | <p> |
| 52 | This is the first tab. |
| 53 | </p> |
| 54 | <p> |
| 55 | Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean |
| 56 | semper sagittis velit. Cras in mi. Duis porta mauris ut ligula. Proin |
| 57 | porta rutrum lacus. Etiam consequat scelerisque quam. Nulla facilisi. |
| 58 | Maecenas luctus venenatis nulla. In sit amet dui non mi semper iaculis. |
| 59 | Sed molestie tortor at ipsum. Morbi dictum rutrum magna. Sed vitae |
| 60 | risus. |
| 61 | </p> |
| 62 | </div> |
| 63 | <div data-dojo-type="dijit/layout/ContentPane" data-dojo-props='title:"Second tab"'> |
| 64 | <p> |
| 65 | This is the second tab. |
| 66 | </p> |
| 67 | <p> |
| 68 | <a href="http://www.lipsum.com/">ipsum dolor sit amet</a>, consectetuer adipiscing elit. Aenean |
| 69 | semper sagittis velit. Cras in mi. Duis porta mauris ut ligula. Proin |
| 70 | porta rutrum lacus. Etiam consequat scelerisque quam. Nulla facilisi. |
| 71 | Maecenas luctus venenatis nulla. In sit amet dui non mi semper iaculis. |
| 72 | Sed molestie tortor at ipsum. Morbi dictum rutrum magna. Sed vitae |
| 73 | risus. |
| 74 | </p> |
| 75 | </div> |
| 76 | </div> |
| 77 | </div> |
| 78 | </div> |
| 79 | |
| 80 | <h2>Initial missing border</h2> |
| 81 | <p> |
| 82 | Make sure the TabContainers below show the border between tab buttons and tab content. |
| 83 | Previously it didn't show on initial page load, but showed after resize. |
| 84 | </p> |
| 85 | <div id='tabContainer1' data-dojo-type='dijit/layout/TabContainer' data-dojo-props="tabPosition: 'top'"></div> |
| 86 | |
| 87 | <h2>Missing border on zoom</h2> |
| 88 | <p> |
| 89 | Make sure separating border doesn't disappear on zoom |
| 90 | (<i>not</i> text-size increase/decrease but zoom). |
| 91 | Problem used to occur on FF/windows and IE8. |
| 92 | </p> |
| 93 | <div id="myTC" data-dojo-type="dijit/layout/TabContainer" style="width: 400px; height: 200px;" tabPosition="left-h" tabStrip="false"> |
| 94 | <div id="LittleRed1" data-dojo-type="dijit/layout/ContentPane" title="One" > |
| 95 | Once upon a time there was a dear little girl who was loved by |
| 96 | every one who looked at her, but most of all by her grandmother, |
| 97 | and there was nothing that she would not have given to the child. |
| 98 | </div> |
| 99 | <div id="HanselGretel1" data-dojo-type="dijit/layout/ContentPane" title="Two" selected="true" > |
| 100 | Some content here. |
| 101 | </div> |
| 102 | <div id="GreenTwigs1" data-dojo-type="dijit/layout/ContentPane" title="The Three Green Twigs" > |
| 103 | Yet more content. |
| 104 | </div> |
| 105 | </div> |
| 106 | </body> |
| 107 | </html> |