Commit 2556b666 authored by Hixie's avatar Hixie

Specs: Define when needsLayout is reset (also, some unrelated markdown fixes)

Review URL: https://codereview.chromium.org/732243002
parent 1496dcfa
...@@ -7,6 +7,7 @@ SKY MODULE ...@@ -7,6 +7,7 @@ SKY MODULE
<script> <script>
module.exports.BlockLayoutManager = class BlockLayoutManager extends sky.LayoutManager { module.exports.BlockLayoutManager = class BlockLayoutManager extends sky.LayoutManager {
function layout(width, height) { function layout(width, height) {
this.markAsLaidOut();
if (width == null) if (width == null)
width = this.getIntrinsicWidth().value; width = this.getIntrinsicWidth().value;
let autoHeight = false; let autoHeight = false;
...@@ -67,7 +68,7 @@ SKY MODULE ...@@ -67,7 +68,7 @@ SKY MODULE
loop = children.next(); loop = children.next();
} }
} }
return super(height); // applies and provides our own min-width/max-width rules return super(height); // applies and provides our own min-height/max-height rules
} }
} }
sky.registerLayoutManager('block', module.exports.BlockLayoutManager); sky.registerLayoutManager('block', module.exports.BlockLayoutManager);
......
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
<script> <script>
class BeehiveLayoutManager extends sky.LayoutManager { class BeehiveLayoutManager extends sky.LayoutManager {
function layout(width, height) { function layout(width, height) {
this.markAsLaidOut();
if (width == null) if (width == null)
width = this.getIntrinsicWidth().value; width = this.getIntrinsicWidth().value;
let autoHeight = false; let autoHeight = false;
......
...@@ -23,6 +23,7 @@ SKY MODULE ...@@ -23,6 +23,7 @@ SKY MODULE
this.overflowChild = null; this.overflowChild = null;
} }
function layout(width, height) { function layout(width, height) {
this.markAsLaidOut();
let children = null; let children = null;
let loop = null; let loop = null;
if (height == null) if (height == null)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment