Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(72)

Side by Side Diff: elements/designer-selection/demo.html

Issue 877243005: Add designer-selection element (Closed) Base URL: https://github.com/PolymerLabs/designer2.git@master
Patch Set: Address more review comments Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 <html>
2 <head>
3 <link rel="import" href="designer-selection.html">
4 <style>
5 designer-selection {
6 position: absolute;
7 top: 100px;
8 left: 100px;
9 width: 200px;
10 height: 200px;
11 }
12 </style>
13 </head>
14 <body>
15 <designer-selection></designer-selection>
16 <script>
17 var selection = document.querySelector('designer-selection');
18 selection.addEventListener('designer-selection-resize', function(event) {
19 var detail = event.detail;
20 var style = selection.style;
21 style.left = detail.left;
22 style.top = detail.top;
23 style.width = detail.width;
24 style.height = detail.height;
25 });
26 </script>
27 </body>
28 </html>
OLDNEW
« no previous file with comments | « elements/designer-selection/ResizeDirection.js ('k') | elements/designer-selection/designer-selection.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698