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

Side by Side Diff: sky/examples/layout/basic.sky

Issue 1023753007: First iteration on custom layout. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: fix liscense header Created 5 years, 9 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 <parent style='background-color: lightblue;'>
2 <child style='background-color: pink;' />
3 </parent>
4 <script>
5 import 'dart:sky';
6
7 void main() {
8 var parent = document.querySelector('parent');
9 parent.setLayoutManager(() {
10 parent.width = 200.0;
11 parent.height = 100.0;
12
13 var child = document.querySelector('child');
14 child.x = 100.0;
15 child.y = 50.0;
16 child.width = 100.0;
17 child.height = 50.0;
18 });
19 }
20 </script>
abarth-chromium 2015/03/25 00:18:51 Can we make this into a test rather than an exampl
ojan 2015/04/02 00:02:29 Good point. This should be easy to test. I was jus
OLDNEW
« sky/engine/core/dom/Element.cpp ('K') | « sky/engine/core/rendering/RenderCustomLayout.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698