-
Notifications
You must be signed in to change notification settings - Fork 427
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
Conversation
There was a problem hiding this 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; |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't be optional
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
made it as required
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
No description provided.