]> source.dussan.org Git - jquery-ui.git/commitdiff
accordion: visual testcase and fix for #4444; probably fixes a few other issues,...
authorJörn Zaefferer <joern.zaefferer@gmail.com>
Thu, 6 Aug 2009 18:57:44 +0000 (18:57 +0000)
committerJörn Zaefferer <joern.zaefferer@gmail.com>
Thu, 6 Aug 2009 18:57:44 +0000 (18:57 +0000)
tests/visual/accordion/accordion_ticket_4444.html [new file with mode: 0644]
themes/base/ui.accordion.css

diff --git a/tests/visual/accordion/accordion_ticket_4444.html b/tests/visual/accordion/accordion_ticket_4444.html
new file mode 100644 (file)
index 0000000..778af73
--- /dev/null
@@ -0,0 +1,49 @@
+<!doctype html>\r
+<html lang="en">\r
+<head>\r
+       <title>Accordion Visual Test : Accordion ticket #4444</title>\r
+       <link rel="stylesheet" href="../visual.css" type="text/css" />\r
+       <link rel="stylesheet" href="../../../themes/base/ui.all.css" type="text/css">\r
+       <script type="text/javascript" src="../../../jquery-1.3.2.js"></script>\r
+       <script type="text/javascript" src="../../../ui/ui.core.js"></script>\r
+       <script type="text/javascript" src="../../../ui/ui.accordion.js"></script>\r
+       <script type="text/javascript">\r
+       $(function() {\r
+               $("#accordion").accordion({\r
+                       autoHeight: false\r
+               });\r
+       })\r
+       </script>\r
+</head>\r
+<body>\r
+\r
+<h1 class="ui-widget-header"><a href="http://dev.jqueryui.com/ticket/4444">#4444 - Accordion Content disappears with autoHeight set to false in IE 6</a></h1>\r
+\r
+<div id="accordion" >\r
+       <h3><a href="#">Section 1</a></h3>\r
+       <div >                                           \r
+               Accordion Content 1<br>\r
+               <a href="#">Link Test #1</a>\r
+       </div> \r
+\r
+       <h3><a href="#">Section 2</a></h3>\r
+       <div>\r
+               <a href="#" >Accordion Content 2</a>\r
+       </div>\r
+       <h3><a href="#">Section 3</a></h3>\r
+       <div>\r
+               <p>Accordion Content 3 </p>\r
+               <ul>\r
+                       <li>List item</li>\r
+                       <li>List item</li>\r
+                       <li>List item</li>\r
+                       <li>List item</li>\r
+                       <li>List item</li>\r
+                       <li>List item</li>\r
+                       <li>List item</li>\r
+               </ul>\r
+       </div>\r
+</div>\r
+\r
+</body>\r
+</html>\r
index dec58193e0da593a625cd751d151d699b7e6b2fa..acd7f5e1e6eb95e33e98dcb827d71667b77b9536 100644 (file)
@@ -6,5 +6,5 @@
 .ui-accordion .ui-accordion-header a { display: block; font-size: 1em; padding: .5em .5em .5em .7em; }
 .ui-accordion-icons .ui-accordion-header a { padding-left: 2.2em; }
 .ui-accordion .ui-accordion-header .ui-icon { position: absolute; left: .5em; top: 50%; margin-top: -8px; }
-.ui-accordion .ui-accordion-content { padding: 1em 2.2em; border-top: 0; margin-top: -2px; position: relative; top: 1px; margin-bottom: 2px; overflow: auto; display: none; }
+.ui-accordion .ui-accordion-content { padding: 1em 2.2em; border-top: 0; margin-top: -2px; position: relative; top: 1px; margin-bottom: 2px; overflow: auto; display: none; zoom: 1; }
 .ui-accordion .ui-accordion-content-active { display: block; }
\ No newline at end of file