Re: [jQuery] jQuery fix to IE's lack of 'max-width' CSS support??

2007-01-19 Thread Oskar E.
Hello While the expression system is quite powerfully, however on some elements it seems to be quite cpu intensive. I tested binding via setExpressions together with jQuery, IE defaults to JScript for expression, nothing that heavy, but my firebug lite console filled quite fast with debug

Re: [jQuery] jQuery fix to IE's lack of 'max-width' CSS support??

2007-01-18 Thread tony rasmus
The answer is even easier than that, Dave! I should have specified that I was testing with IE6 in this case. Recall that I could get expected behavior in quirks mode. Well... In quirks, IE6's document.body.clientWidth returns the window, which is right for the expressions fix. In standards

Re: [jQuery] jQuery fix to IE's lack of 'max-width' CSS support??

2007-01-17 Thread Su
jQMinMax: http://davecardwell.co.uk/geekery/javascript/jquery/jqminmax/ On 1/17/07, tony rasmus [EMAIL PROTECTED] wrote: IE5/6 do not support CSS 'max-width'. I love JQuery, and I wonder if there is a way jQuery can help. Does anyone know of a jQuery fix to IE's lack of 'max-width'?

Re: [jQuery] jQuery fix to IE's lack of 'max-width' CSS support??

2007-01-17 Thread tony rasmus
I'm stuck :) The desired behavior is in Firefox: When the window size decreases below a box's max-width value, the box width is auto and shrinks. I think this is standard: http://www.w3.org/TR/CSS21/visudet.html#min-max-widths The popular expressions fix to the IE5/6 CSS max-width bug is:

Re: [jQuery] jQuery fix to IE's lack of 'max-width' CSS support??

2007-01-17 Thread Dave Methvin
I'm glad you brought this up, I was going to need it soon. I ran your test case (thanks for giving one) and noticed that if you size the window to like 150px and reload it does resize up or down fine until it reaches the 310 case and then it gets stuck. width:

Re: [jQuery] jQuery fix to IE's lack of 'max-width' CSS support??

2007-01-17 Thread Dave Methvin
As soon as I sent I thought of this. width: expression(document.body.clientWidth 310 ? 300px : auto ); margin: 10px expression(document.body.clientWidth 310 ? auto : 10px ) 10px 10px; You might expect 10px auto 10px 10px to work but it doesn't; the expression has to be there. Yes it

[jQuery] jQuery fix to IE's lack of 'max-width' CSS support??

2007-01-16 Thread tony rasmus
IE5/6 do not support CSS 'max-width'. I love JQuery, and I wonder if there is a way jQuery can help. Does anyone know of a jQuery fix to IE's lack of 'max-width'? Cheers, -Tony -- View this message in context: