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

Review URL: https://codereview.chromium.org/732243002
This commit is contained in:
Hixie 2014-11-17 15:43:31 -08:00
parent 1496dcfafa
commit 2556b66620
3 changed files with 4 additions and 1 deletions

View File

@ -7,6 +7,7 @@ SKY MODULE
<script>
module.exports.BlockLayoutManager = class BlockLayoutManager extends sky.LayoutManager {
function layout(width, height) {
this.markAsLaidOut();
if (width == null)
width = this.getIntrinsicWidth().value;
let autoHeight = false;
@ -67,7 +68,7 @@ SKY MODULE
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);

View File

@ -3,6 +3,7 @@
<script>
class BeehiveLayoutManager extends sky.LayoutManager {
function layout(width, height) {
this.markAsLaidOut();
if (width == null)
width = this.getIntrinsicWidth().value;
let autoHeight = false;

View File

@ -23,6 +23,7 @@ SKY MODULE
this.overflowChild = null;
}
function layout(width, height) {
this.markAsLaidOut();
let children = null;
let loop = null;
if (height == null)