corrade-http-templates – Blame information for rev 62
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
62 | office | 1 | <!doctype html> |
2 | <html lang="en"> |
||
3 | <head> |
||
4 | <meta charset="utf-8"> |
||
5 | <title>Compound Visual Test: Draggable and Resizable block element</title> |
||
6 | <link rel="stylesheet" href="../visual.css"> |
||
7 | <link rel="stylesheet" href="../../../themes/base/all.css"> |
||
8 | <style> |
||
9 | .draggable { |
||
10 | margin: 0.5em; |
||
11 | padding: 0.5em; |
||
12 | } |
||
13 | .absolute { |
||
14 | color: red; |
||
15 | position: absolute !important; |
||
16 | } |
||
17 | </style> |
||
18 | <script src="../../../external/requirejs/require.js"></script> |
||
19 | <script src="../../../demos/bootstrap.js" data-modules="draggable resizable" |
||
20 | data-composite="true"> |
||
21 | $( ".draggable" ) |
||
22 | .addClass( "ui-widget ui-widget-header ui-corner-all" ) |
||
23 | .draggable({ |
||
24 | revert: "invalid" |
||
25 | }) |
||
26 | .resizable({ |
||
27 | minHeight: 13, |
||
28 | handles: "s" |
||
29 | }); |
||
30 | $( ".draggable:last" ).addClass( "absolute" ); |
||
31 | </script> |
||
32 | </head> |
||
33 | <body> |
||
34 | |||
35 | <p>WHAT: Three draggable and resizable elements, with only a bottom handle. Last one (red color) is absolutely positioned.</p> |
||
36 | <p>EXPECTED: Each element can be dragged and resized. The first two stay with their relative positioning (induced by draggable). The last one can be resized despite the absolute positioning.</p> |
||
37 | |||
38 | <div id="first"> |
||
39 | <div class="draggable">Draggable 1-1</div> |
||
40 | <div class="draggable">Draggable 1-2</div> |
||
41 | <div class="draggable">Draggable 1-3</div> |
||
42 | </div> |
||
43 | |||
44 | </body> |
||
45 | </html> |