]> source.dussan.org Git - jquery-ui.git/commitdiff
Position: Extend main visual test page with simple 'arrow' callouts, as a starting...
authorJörn Zaefferer <joern.zaefferer@gmail.com>
Tue, 3 Apr 2012 08:49:34 +0000 (10:49 +0200)
committerJörn Zaefferer <joern.zaefferer@gmail.com>
Tue, 3 Apr 2012 08:49:34 +0000 (10:49 +0200)
tests/visual/position/position.html

index 9a9fb831eaaec4a23bbd556a58fa6029cb98a27b..b9b769d9b939cf4b77074564461c607088141a9e 100644 (file)
@@ -24,9 +24,9 @@
                                        collision: "none"
                                });
                                $(this).next().menu().position({
-                                       my: "left top",
+                                       my: "left top+20",
                                        at: "left bottom",
-                                       of: this
+                                       of: this,
                                });
                        });
                }).resize();
                .ui-menu { width: 200px; }
                html, body { width: 99%; height: 99%; min-height:700px; min-width:700px; }
                #container { width: 95%; height: 95%; border: 1px solid black; margin: auto; }
+               .ui-menu:before {
+                       font-size: 12pt;
+                       content: "↑";
+                       position: absolute;
+                       top: -22px;
+                       left: 5px;
+               }
+               .ui-flipped-left:before {
+                       left: auto;
+                       right: 5px;
+               }
+               .ui-flipped-top:before {
+                       content: "↓";
+                       top: auto;
+                       bottom: -19px;
+               }
        </style>
 </head>
 <body>