Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Layout type check for computed layouts #237

Merged
merged 7 commits into from
Aug 24, 2018

Conversation

muskeinsingh
Copy link
Contributor

No description provided.

@muskeinsingh muskeinsingh reopened this Aug 22, 2018
Copy link
Collaborator

@manishPatwari manishPatwari left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@@ -140,7 +140,7 @@ export class WrapGridLayoutManager extends LayoutManager {

//TODO: Talha creating array upfront will speed this up
if (i > oldItemCount - 1) {
this._layouts.push({ x: startX, y: startY, height: itemDim.height, width: itemDim.width });
this._layouts.push({ x: startX, y: startY, height: itemDim.height, width: itemDim.width, type: layoutType });
} else {
itemRect = this._layouts[i];
itemRect.x = startX;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Update the value here as well.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@@ -203,6 +203,7 @@ export class WrapGridLayoutManager extends LayoutManager {

export interface Layout extends Dimension, Point {
isOverridden?: boolean;
type?: string | number;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't be optional

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

made it as required

Copy link
Collaborator

@naqvitalha naqvitalha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@naqvitalha naqvitalha merged commit 730cbde into master Aug 24, 2018
@naqvitalha naqvitalha deleted the layoutTypeCheckForComputedLayouts branch August 24, 2018 10:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants