google / google/material-design-lite

.mdl-layout__content needs to recalulate it's hieght for AJAX

Open
#5,032 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
HTML
Stars
32.2k
Forks
4.9k
PR merge metrics
No merged PRs in 30d

Description

Issue:
I have two cards which I have to hide one at the start, and if the user choose to enter their details manually then it should get rid of the current box, and display:block the next one - Now this part works fine.

However due to the fact the second box is much bigger for some reason mdl does show the full box. It is strange it is not keep the orginal size since I am using window.onload to make the card div hidden.

Here is my JS
```

window.onload = function (){
hidestuff("entermanually");
} //SHOW AND HIDE DATA FROM USERS
function showstuff(boxid){
document.getElementById(boxid).style.display="block";

}

function hidestuff(boxid){
document.getElementById(boxid).style.display="none";
}
function manuallyenterdata(){
hidestuff("RAU");
hidestuff("fb");
showstuff("entermanually");

}

```
HTML
```
//FIRST DIV



Your Profile Information






Fetch My Facebook Information




Don't link my Facebook


//Second DIV for manual entry.



Your Profile Information





Drop your profile picture Here!














First Name





Last Name





Last Name





Last Name




```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.