remove console log

This commit is contained in:
SteVen Batten 2020-07-30 23:36:21 -07:00
parent ecf6a0172e
commit f28873cfb7

View file

@ -80,8 +80,6 @@ export interface ILayoutAnchor {
export function layout(viewportSize: number, viewSize: number, anchor: ILayoutAnchor): number {
const anchorEnd = anchor.offset + anchor.size;
console.log(`viewport: ${viewportSize}, view: ${viewSize}`);
if (anchor.position === LayoutAnchorPosition.Before) {
if (viewSize <= viewportSize - anchorEnd) {
return anchorEnd; // happy case, lay it out after the anchor