material icon indicating copy to clipboard operation
material copied to clipboard

feat(md-tabs): md-stretch-height to fill parent element

Open ghost opened this issue 11 years ago • 33 comments

Currently md-tabs offer md-dynamic-height ability which can be nice but ...

Is it possible to somehow force md-tabs to set height to a height of the highest tab ?

ghost avatar Apr 10 '15 14:04 ghost

I would agree that md-dynamic-height attribute adds some excellent functionality. However I would like an attribute called: md-layout-fill. Which would instruct md-tabs to fill the entire layout it is in.

The problem I am having is that my tab content is loaded through an ng-include. This sometimes has a delay and if md-dynamic-height calculates before the content is there you'll be looking at nothing or some chopped off content.

Is there another way to instruct md-tabs how to tall it should be in 0.9?

ACDN avatar Apr 15 '15 23:04 ACDN

@ACDN I believe this would be accomplished with our layout API.

@gpopovic Not a bad idea, should be fairly easy to implement since the math and logic are already there.

robertmesserle avatar Apr 24 '15 21:04 robertmesserle

+1

jakubweber avatar May 20 '15 13:05 jakubweber

+1

ivks avatar Jul 07 '15 04:07 ivks

+1

marcramser avatar Jul 16 '15 05:07 marcramser

+1

wollio avatar Jul 16 '15 06:07 wollio

+1

fdalvi avatar Jul 18 '15 17:07 fdalvi

@robertmesserle As far as I can tell, it is impossible to use the layout API to accomplish vertically stretched tabs.

See this plunkr: http://plnkr.co/edit/V08Ler8vaZGPaRaurtf9?p=preview

The layout attributes applied cause the tabs control to stretch vertically, and should cause the tabs' content to stretch to fill their parent as well, but this is not what happens.

jonrimmer avatar Dec 02 '15 11:12 jonrimmer

+1 There doesn't seem to be any way to get the content of a tab to fill the available space with any combination of layout and flex attributes.

jalipert avatar Dec 09 '15 21:12 jalipert

+1

DomiR avatar Dec 10 '15 12:12 DomiR

+1

shug0 avatar Dec 10 '15 12:12 shug0

Worked with previous versions: http://plnkr.co/edit/V08Ler8vaZGPaRaurtf9?p=preview

DomiR avatar Dec 10 '15 13:12 DomiR

+1

ghost avatar Jan 12 '16 20:01 ghost

:+1:

sarod avatar Jan 13 '16 13:01 sarod

+1

mwymann avatar Feb 15 '16 17:02 mwymann

+1

Muttok avatar Feb 22 '16 10:02 Muttok

+1

ruisebastiao avatar Feb 23 '16 00:02 ruisebastiao

+1

bonzanni avatar Feb 28 '16 20:02 bonzanni

+1

stevezau avatar Feb 29 '16 07:02 stevezau

good grief .. April 2015 ?

Surely we should have had a solution by now. I've spent hours trying to make this work before coming across this issue

jmls avatar Feb 29 '16 11:02 jmls