1

I have two child component A and B inside a parent component stacked one after other.Component A is supposed to be static and does not contains scroll bar.How ever its height changes depends on screen size.Component B contains scroll bar and is supposed to occupy the remaining space on screen.
I have applied the scroll wrapper on B and it's Height is set to 43vh(for example).However since component A's height changes based on screen , some bootom part of component B goes out of applied height.
enter image description here How am I supposed to calculate the remaining part of height after occupied by component A.

  • 1
    Could you incldue a minimal reproduceable code sample of what you have implemented so far? thanks – glls Dec 31 '18 at 15:54

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.