Skip to content

Refactor(styleComputations): fixes rendercontainer rendering problems #3145

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

Merged
merged 1 commit into from
Mar 28, 2015

Conversation

PaulL1
Copy link
Contributor

@PaulL1 PaulL1 commented Mar 28, 2015

Change the style computations with the aim of making them deterministic
and able to calculate widths in a single pass rather than being iterative.

Fix #3050, and somewhat improves #1957, at least to my eye.

Changes are:

  • change renderContainer updateColumnWidths to calculate across all
    visible columsn in all render containers, rather than trying to calculate
    one render container at a time (cannot otherwise work with * and %, these are of
    the whole grid, not just one render container)
  • change header updateColumnWidths to just rely on the renderContainer, not
    do it again itself in a slightly different way
  • change updateColumnWidths to be simpler, and to calculate percentages in a way
    that I think makes more sense
  • change resize feature to not attempt to 'resizeAround' the changed column, but
    rather allow updateColumnWidths to deal with it
  • change pinning to not call refresh twice when moving a column, this is now
    unnecessary
  • updates to tutorials

Change the style computations with the aim of making them deterministic
and able to calculate widths in a single pass rather than being iterative.

Fix angular-ui#3050, and somewhat improves angular-ui#1957, at least to my eye.

Changes are:
- change renderContainer updateColumnWidths to calculate across all
  visible columsn in all render containers, rather than trying to calculate
  one render container at a time (cannot otherwise work with * and %, these are of
  the whole grid, not just one render container)
- change header updateColumnWidths to just rely on the renderContainer, not
  do it again itself in a slightly different way
- change updateColumnWidths to be simpler, and to calculate percentages in a way
  that I think makes more sense
- change resize feature to not attempt to 'resizeAround' the changed column, but
  rather allow updateColumnWidths to deal with it
- change pinning to not call refresh twice when moving a column, this is now
  unnecessary
- updates to tutorials
PaulL1 added a commit that referenced this pull request Mar 28, 2015
Refactor(styleComputations): fixes rendercontainer rendering problems
@PaulL1 PaulL1 merged commit d8f1042 into angular-ui:master Mar 28, 2015
@c0bra c0bra removed the in progress label Mar 28, 2015
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.

AddRowHeader causes grid misalignment
2 participants