| OLD | NEW |
| 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 library timeline_page_element; | 5 library timeline_page_element; |
| 6 | 6 |
| 7 import 'dart:async'; | 7 import 'dart:async'; |
| 8 import 'dart:convert'; | 8 import 'dart:convert'; |
| 9 import 'dart:html'; | 9 import 'dart:html'; |
| 10 import 'observatory_element.dart'; | 10 import 'observatory_element.dart'; |
| 11 import 'package:observatory/app.dart'; | |
| 12 import 'package:observatory/service_html.dart'; | 11 import 'package:observatory/service_html.dart'; |
| 13 import 'package:polymer/polymer.dart'; | 12 import 'package:polymer/polymer.dart'; |
| 14 | 13 |
| 15 | 14 |
| 16 @CustomTag('timeline-page') | 15 @CustomTag('timeline-page') |
| 17 class TimelinePageElement extends ObservatoryElement { | 16 class TimelinePageElement extends ObservatoryElement { |
| 18 TimelinePageElement.created() : super.created(); | 17 TimelinePageElement.created() : super.created(); |
| 19 | 18 |
| 20 attached() { | 19 attached() { |
| 21 super.attached(); | 20 super.attached(); |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 final top = e.offset.top; | 73 final top = e.offset.top; |
| 75 final bottomMargin = 32; | 74 final bottomMargin = 32; |
| 76 final mainHeight = totalHeight - top - bottomMargin; | 75 final mainHeight = totalHeight - top - bottomMargin; |
| 77 e.style.setProperty('height', '${mainHeight}px'); | 76 e.style.setProperty('height', '${mainHeight}px'); |
| 78 e.style.setProperty('width', '100%'); | 77 e.style.setProperty('width', '100%'); |
| 79 } | 78 } |
| 80 | 79 |
| 81 | 80 |
| 82 StreamSubscription _resizeSubscription; | 81 StreamSubscription _resizeSubscription; |
| 83 } | 82 } |
| OLD | NEW |