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

[Dialog] Fix dialog maxHeight math. #1305

Merged
merged 1 commit into from Aug 3, 2015
Merged

[Dialog] Fix dialog maxHeight math. #1305

merged 1 commit into from Aug 3, 2015

Conversation

igrayson
Copy link
Contributor

  • paddingTop is already a function of clientHeight (and the Dialog's
    own current height). Among other things, this makes it impossible
    for the Dialog's maxHeight to ever reduce; demonstrated by
    resizing window down and back up (Dialog stays tiny). Also,
    this made it impossible for the Dialog to grow in response
    to changing dimensions of its rendered children.

* paddingTop is already a function of clientHeight (and the Dialog's
  own current height). Among other things, this makes it impossible
  for the Dialog's maxHeight to ever reduce; demonstrated by
  resizing window down and back up (Dialog stays tiny). Also,
  this made it impossible for the Dialog to grow in response
  to changing dimensions of its rendered children.
hai-cea added a commit that referenced this pull request Aug 3, 2015
[Dialog] Fix dialog maxHeight math.
@hai-cea hai-cea merged commit 99435d7 into mui:master Aug 3, 2015
@hai-cea
Copy link
Member

hai-cea commented Aug 3, 2015

Thanks @igrayson 👍

@zannager zannager added the component: dialog This is the name of the generic UI component, not the React module! label Mar 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: dialog This is the name of the generic UI component, not the React module!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants