Hi Guys, Sorry for the slow reply, I got side tracked on another project. Tom was right, auto is what I needed.
Thanks, Bryan On Feb 1, 1:01 pm, Tom Occhino <[email protected]> wrote: > Later I need that element to go to a new height, which is just what > ever the size of the contained content inside that element is. > > Bryan wants the size of the container to fit the content inside of it. > This is the definition of height:auto; which has always worked in IE... > > On Jan 31, 2009, at 6:26 PM, keif wrote: > > > > > Yes, IE supports height auto. But if you need it to match it's parent > > container (and you're worried about height:auto) > > > $(el).setStyle('height', el.getParent().getStyle('height')); > > > or even: > > $(el).setStyle('height', el.getParent().getSize().y); > > > or if you insist on items having their own variable: > > var el = $(el); > > var parentHeight = el.getParent().getSize().y; > > // set height > > el.setStyle('height', parentHeight); > > > On Jan 30, 1:28 pm, csuwldcat <[email protected]> wrote: > >> Uhhh...since when has IE not had height: auto;??? I am almost 100% > >> sure this is supported in IE 6+. I guess I can really speak for > >> below > >> IE 6, I told those users to f*ck off long ago... :) > > >> On Jan 30, 10:15 am, Oskar Krawczyk <[email protected]> wrote: > > >>> Bear in mind that IE has no notion of "auto" values, ergo it's not > >>> a x- > >>> browser solution – unless MT is automagically addressing this > >>> problem. > > >>> On Jan 30, 5:47 pm, Tom Occhino <[email protected]> wrote: > > >>>> $(el).setStyle('height', 'auto'); > > >>>> On Fri, Jan 30, 2009 at 8:48 AM, Kasper22 > >>>> <[email protected]> wrote: > > >>>>> Hi Guys, > > >>>>> I'm not sure if this is a bug, or maybe there is a better way, but > >>>>> here is what I'm trying to to do. I have an element that has > >>>>> had its > >>>>> height set by using the Element.setStyle(). Later I need that > >>>>> element > >>>>> to go to a new height, which is just what ever the size of the > >>>>> contained content inside that element is. I thought a good way > >>>>> to do > >>>>> it would be change the style from a specified height to 'inherit'. > >>>>> This works fine in real browsers, but our special friend IE > >>>>> throws an > >>>>> error and says it doesn't know the property and throws and > >>>>> exception. > > >>>>> Is there a better way to make that change or is this a bug? > > >>>>> Thanks > >>>>> Bryan
