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
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".
___
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
> 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
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]
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
> 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
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
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
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
>
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
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?
>
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;
> },
>
>
>
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
-
> 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
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]
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
17 matches
Mail list logo