Re: [Rails-spinoffs] how to use Effect.BlindUp for resizing a div

2006-04-28 Thread Jeremy Kitchen
On Friday 28 April 2006 02:05, Martin Bialasinski wrote: > On 4/26/06, Jeremy Kitchen <[EMAIL PROTECTED]> wrote: > > Element.setStyle(element, {height: 123}); > > Length in CSS always needs a unit, except for 0. There is no "default > unit" of px. Whether using the setStyle wrapper or direct assign

Re: [Rails-spinoffs] how to use Effect.BlindUp for resizing a div

2006-04-28 Thread Martin Bialasinski
On 4/26/06, Jeremy Kitchen <[EMAIL PROTECTED]> wrote: > Element.setStyle(element, {height: 123}); Length in CSS always needs a unit, except for 0. There is no "default unit" of px. Whether using the setStyle wrapper or direct assignment, this has to be "123px". ___

Re: [Rails-spinoffs] how to use Effect.BlindUp for resizing a div

2006-04-26 Thread Jeremy Kitchen
On Wednesday 26 April 2006 06:44, Joe Hudson wrote: > If no one has an answer to this, would anybody be able to tell me how to do > the following: > > - how to get the height of a block element var dims = Element.getDimensions(element); dims.height; > - how to set the height of a block element E

RE: [Rails-spinoffs] how to use Effect.BlindUp for resizing a div

2006-04-26 Thread Gregory Hill
> At any time are you specifically setting the width/height in CSS? I do and > that is the only thing I can think of that would make a difference. My > values are usually in explicit pixels or em's. Nope, I am not. I guess that's the difference. I was using it to determine the size of an item be

RE: [Rails-spinoffs] how to use Effect.BlindUp for resizing a div

2006-04-26 Thread Martinez, Andrew
ueue it on my list of things to look into though. -Andrew Martinez -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Martinez, Andrew Sent: Wednesday, April 26, 2006 12:05 PM To: rails-spinoffs@lists.rubyonrails.org Subject:RE: [Rails-spinoffs]

RE: [Rails-spinoffs] how to use Effect.BlindUp for resizing a div

2006-04-26 Thread Martinez, Andrew
Subject:RE: [Rails-spinoffs] how to use Effect.BlindUp for resizing a div > What versions of IE? I believe I am routinely using offsetHeight and > offsetWidth on elements that are positioned absolutely... IE 6 - if you are, then maybe there is some extra factor that I'm not consid

RE: [Rails-spinoffs] how to use Effect.BlindUp for resizing a div

2006-04-26 Thread Gregory Hill
> What versions of IE? I believe I am routinely using offsetHeight and > offsetWidth on elements that are positioned absolutely... IE 6 - if you are, then maybe there is some extra factor that I'm not considering. It returns 0 for me on positioned elements no matter what else I try to change. Gr

RE: [Rails-spinoffs] how to use Effect.BlindUp for resizing a div

2006-04-26 Thread Martinez, Andrew
To: rails-spinoffs@lists.rubyonrails.org Subject:RE: [Rails-spinoffs] how to use Effect.BlindUp for resizing a div One thing to keep in mind is that offsetHeight and offsetWidth do not work with absolutely or relatively positioned elements in IE. So, if you want to get the height and

RE: [Rails-spinoffs] how to use Effect.BlindUp for resizing a div

2006-04-26 Thread Gregory Hill
One thing to keep in mind is that offsetHeight and offsetWidth do not work with absolutely or relatively positioned elements in IE. So, if you want to get the height and have it positioned, apply the positioning via javascript, after you capture the height. Not sure if you need that, but it's som

RE: [Rails-spinoffs] how to use Effect.BlindUp for resizing a div

2006-04-26 Thread Joe Hudson
rails.org' > Subject: RE: [Rails-spinoffs] how to use Effect.BlindUp for resizing a div > > 'fraid not. > > I have one of these next to my desk which might help you > <http://www.snook.ca/archives/prototype.png>. Of course, the code is > always >

RE: [Rails-spinoffs] how to use Effect.BlindUp for resizing a div

2006-04-26 Thread Martinez, Andrew
D] [mailto:[EMAIL PROTECTED] On Behalf Of Joe Hudson Sent: Wednesday, April 26, 2006 10:09 AM To: rails-spinoffs@lists.rubyonrails.org Subject: RE: [Rails-spinoffs] how to use Effect.BlindUp for resizing a div Thank you all very much. This is exactly what I was looking for. Is there a

RE: [Rails-spinoffs] how to use Effect.BlindUp for resizing a div

2006-04-26 Thread SPENDLOVE, Matt, GBM
f Joe Hudson > Sent: 26 April 2006 15:09 > To: rails-spinoffs@lists.rubyonrails.org > Subject: RE: [Rails-spinoffs] how to use Effect.BlindUp for > resizing a div > > > Thank you all very much. This is exactly what I was looking > for. Is there a setHeight function? >

RE: [Rails-spinoffs] how to use Effect.BlindUp for resizing a div

2006-04-26 Thread Joe Hudson
rails-spinoffs@lists.rubyonrails.org > Subject: RE: [Rails-spinoffs] how to use Effect.BlindUp for resizing a div > > Code from prototype: > > getHeight: function(element) { > element = $(element); > return element.offsetHeight; > }, > > >

RE: [Rails-spinoffs] how to use Effect.BlindUp for resizing a div

2006-04-26 Thread Martinez, Andrew
le 585-340-8455 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of SPENDLOVE, Matt, GBM Sent: Wednesday, April 26, 2006 9:58 AM To: 'rails-spinoffs@lists.rubyonrails.org' Subject: RE: [Rails-spinoffs] how to use Effect.BlindUp for

RE: [Rails-spinoffs] how to use Effect.BlindUp for resizing a div

2006-04-26 Thread SPENDLOVE, Matt, GBM
- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Joe Hudson > Sent: Wednesday, April 26, 2006 9:44 AM > To: rails-spinoffs@lists.rubyonrails.org > Subject: RE: [Rails-spinoffs] how to use Effect.BlindUp > for resizing a div > > If

RE: [Rails-spinoffs] how to use Effect.BlindUp for resizing a div

2006-04-26 Thread Martinez, Andrew
default is pixels but you can use other such as em. Andrew Paul Martinez -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Joe Hudson Sent: Wednesday, April 26, 2006 9:44 AM To: rails-spinoffs@lists.rubyonrails.org Subject: RE: [Rails-spinoffs]

RE: [Rails-spinoffs] how to use Effect.BlindUp for resizing a div

2006-04-26 Thread Joe Hudson
If no one has an answer to this, would anybody be able to tell me how to do the following: - how to get the height of a block element - how to set the height of a block element I'm sure these are trivial but I just haven't found the correct methods to do so. Thanks very much. Joe > -Origi