I have placed a button which Hides/Shows SharePoint ribbon
onclick. So initially when the page is loaded the ribbon gets hidden. Due to which there is an extra white space below every page which uses that masterpage.
So I want to remove those extra white spaces.
Till now i have tried
changing the height of
s4-workspace like this
This works when there is 1-2 app parts but does not works on each and every screen or when there is more app parts or no app parts.
Also I have tried giving percentage to height.
So there any general way to solve this issue.