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

Unified Diff: samples/swarm/swarm_ui_lib/view/PagedViews.dart

Issue 12605003: Converting Element.client*, offset* and Screen.avail* over to Rects (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « samples/swarm/swarm_ui_lib/touch/Scroller.dart ('k') | samples/swarm/swarm_ui_lib/view/SliderMenu.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samples/swarm/swarm_ui_lib/view/PagedViews.dart
diff --git a/samples/swarm/swarm_ui_lib/view/PagedViews.dart b/samples/swarm/swarm_ui_lib/view/PagedViews.dart
index 8a2ab01f5f5e69fb61ef10c3ce5e3b11c5518036..2650532b39ee7914ce26f8378116a71565ab5ae7 100644
--- a/samples/swarm/swarm_ui_lib/view/PagedViews.dart
+++ b/samples/swarm/swarm_ui_lib/view/PagedViews.dart
@@ -184,7 +184,7 @@ class PagedColumnView extends View {
// flow to the right correctly. So we copy our own height and set the height
// of the content.
window.setImmediate(() {
- contentView.node.style.height = '${node.offsetHeight}px';
+ contentView.node.style.height = '${node.offset.height}px';
});
_updatePageCount(null);
}
@@ -192,7 +192,7 @@ class PagedColumnView extends View {
bool _updatePageCount(Callback callback) {
int pageLength = 1;
window.setImmediate(() {
- if (_container.scrollWidth > _container.offsetWidth) {
+ if (_container.scrollWidth > _container.offset.width) {
pageLength = (_container.scrollWidth / _computePageSize(_container))
.ceil().toInt();
}
@@ -263,7 +263,7 @@ class PagedColumnView extends View {
// Hacky: we need to duplicate the way the columns are being computed,
// including rounding, to figure out how far to translate the div.
// See http://www.w3.org/TR/css3-multicol/#column-width
- _viewportSize = element.offsetWidth;
+ _viewportSize = element.offset.width;
// Figure out how many columns we're rendering.
// The algorithm ensures we're bigger than the specified min size.
« no previous file with comments | « samples/swarm/swarm_ui_lib/touch/Scroller.dart ('k') | samples/swarm/swarm_ui_lib/view/SliderMenu.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698