swyxio / svelte-actions

prototype official actions for Svelte
MIT License
228 stars 9 forks source link

fill height action #16

Closed ticruz38 closed 3 years ago

ticruz38 commented 3 years ago

Imagine you have an element on the page, and you want him to take the remaining height on the screen There is no proper answer to this problem with css... But a svelte action would be clean

swyxio commented 3 years ago

i dont understand. why not height: 100%

ticruz38 commented 3 years ago

You want your viewport to not have a scroll bar, sometimes you have a header and some stuffs below, and then you have your element that should fit the rest of the viewport height, height 100% would get your element to go outside the viewport. This action is quite specific, I'll put it in another repo, never mind.