OLD | NEW |
| (Empty) |
1 <!doctype html> | |
2 <!-- | |
3 Copyright (c) 2014 The Polymer Project Authors. All rights reserved. | |
4 This code may only be used under the BSD style license found at http://polymer.g
ithub.io/LICENSE.txt | |
5 The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt | |
6 The complete set of contributors may be found at http://polymer.github.io/CONTRI
BUTORS.txt | |
7 Code distributed by Google as part of the polymer project is also | |
8 subject to an additional IP rights grant found at http://polymer.github.io/PATEN
TS.txt | |
9 --> | |
10 <html> | |
11 <head> | |
12 <title>core-splitter</title> | |
13 <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-
scale=1.0"> | |
14 | |
15 <script src="../platform/platform.js"></script> | |
16 | |
17 <link rel="import" href="core-splitter.html"> | |
18 | |
19 <style> | |
20 | |
21 body { | |
22 margin: 24px; | |
23 } | |
24 | |
25 .container { | |
26 width: 400px; | |
27 height: 200px; | |
28 border: 4px solid #aaa; | |
29 } | |
30 | |
31 #box1, #box3, #box5, #box6 { | |
32 width: 100px; | |
33 } | |
34 | |
35 #box2, #box4 { | |
36 height: 40px; | |
37 } | |
38 | |
39 </style> | |
40 | |
41 </head> | |
42 <body unresolved> | |
43 <div class="container" horizontal layout> | |
44 <div>left</div> | |
45 <core-splitter direction="left" minSize="128px"></core-splitter> | |
46 <div flex>right</div> | |
47 </div> | |
48 | |
49 <br> | |
50 | |
51 <div class="container" vertical layout> | |
52 <div id="box2">top</div> | |
53 <core-splitter direction="up"></core-splitter> | |
54 <div flex>bottom</div> | |
55 </div> | |
56 | |
57 <br> | |
58 | |
59 <div class="container" horizontal layout> | |
60 <div id="box3">1</div> | |
61 <core-splitter direction="left"></core-splitter> | |
62 <div flex vertical layout> | |
63 <div id="box4">2</div> | |
64 <core-splitter direction="up"></core-splitter> | |
65 <div flex>3</div> | |
66 </div> | |
67 </div> | |
68 | |
69 <br> | |
70 | |
71 <div class="container" horizontal layout> | |
72 <div id="box5">left</div> | |
73 <core-splitter direction="left"></core-splitter> | |
74 <div flex>center</div> | |
75 <core-splitter direction="right"></core-splitter> | |
76 <div id="box6">right</div> | |
77 </div> | |
78 | |
79 </body> | |
80 </html> | |
OLD | NEW |