On 12/8/06, Dave Methvin <[EMAIL PROTECTED]> wrote:
> > On the subject of dimensions, is there an x-browser way of detecting
> > if an element has been given a fixed height?
> >
> > Well, there should be but calling .css() for height or width always
> > computes the width instead of returning what was specified via CSS.
> > There has been some discussion about letting the .height() and
> > .width() methods deal with computing the value and letting .css()
> > return what was specified in the css.
>
> This is an issue with the corner plugin and fixed-height elements. Even if
> .css('height') returned the css property for the element I don't think that
> would help because the style could have been applied via a stylesheet.
>
> On a different project, I am trying to set the exact height of a select box
> through a style and that isn't going well either...If I'm not mistaken if jQuery didn't do anything when height/width was passed into .css(), then .css() would return the value of the .style object or if that didn't exist the value in the stylesheet. Which if the value in the stylesheet wasn't defined it should return null or 'auto'. Then you would know that it has _not_ been given a fixed height. -- Brandon Aaron _______________________________________________ jQuery mailing list [email protected] http://jquery.com/discuss/
