It seems you have a <!DOCTYPE  >"issue"  ?
That is if !DOCTYPE is changed to a proper one, things of this sort
will start appearing, very soon ;o)

For my team I have prepared this "quick jQ 1.3.X reminder" page:

http://dbjsystems.com/jq/

PS: which is still called "quick test" ... ;o(

On Apr 1, 12:29 pm, Brandon Aaron <[email protected]> wrote:
> Could you show me the markup of the page that you are having these issues
> on?
> --
> Brandon Aaron
>
> On Wed, Apr 1, 2009 at 5:54 AM, Julian Aubourg 
> <[email protected]>wrote:
>
> > I don't know if something changed with the 1.3.2 version shared on google
> > but the viewport size is now correct Oo.
> > Anyway, I have a couple more problems (though I found workarounds). They
> > are all IE only (tested on IE7):
>
> > 1) $(window).scrollTop() and .scrollLeft() do not work. You have to do
> > $("html").scrollTop() & .scrollLeft() respectively.
> > 2) element.offset() doesn't take scrolls into account (I'm pretty confident
> > it is linked to bug #1). So you have to manually add $("html").scrollTop() &
> > .scrollLeft() to have the correct coords.
>
> > -- Julian
>
> > 2009/3/30 Brandon Aaron <[email protected]>
>
> >> You could pull in the window logic from 1.2.6 (
> >>http://dev.jquery.com/browser/tags/1.2.6/src/core.js#L1338) into the
> >> 1.3.2 release (
> >>http://dev.jquery.com/browser/tags/1.3.2/src/dimensions.js#L25).
> >> --
> >> Brandon Aaron
>
> >> On Mon, Mar 30, 2009 at 3:48 PM, Julian Aubourg <[email protected]
> >> > wrote:
>
> >>> Thanks for the quick answer Brandon.
> >>> And yes, I can live with a nightly build though, as you can imagine, the
> >>> client is like not understanding what's taking so long (go explain the joy
> >>> of version migration to a client!). Any timeframe? I could also live with 
> >>> an
> >>> ugly workaround until it's done if you happen to have one.
>
> >>> -- Julian
>
> >>> 2009/3/30 Brandon Aaron <[email protected]>
>
> >>> There is a bug open on window dimensions in jQuery 1.3.x... Unfortunately
> >>>> it looks like we have a gap in unit tests that allowed this regression to
> >>>> occur. It looks like it happened in r5985. It will be fixed for the 1.3.3
> >>>> release but I'm unsure when that release will happen right now. I should 
> >>>> be
> >>>> able to allocate some time to fix this issue soon though if you don't 
> >>>> mind
> >>>> using a nightly build once it is fixed.
> >>>> --
> >>>> Brandon Aaron
>
> >>>> On Mon, Mar 30, 2009 at 2:14 PM, Julian Aubourg <
> >>>> [email protected]> wrote:
>
> >>>>> Hi all,
> >>>>> I'm in the process of migrating a site from 1.2.7 to 1.3.2.
>
> >>>>> So far, I just ran into a bug in webkit browsers that forced me to
> >>>>> rewrite "expr1, expr2, ... exprN" selectors into loops (I suppose you're
> >>>>> aware of this one).
> >>>>> I also have trouble with attaching event handlers to dynamically
> >>>>> created elements, but I guess it's all a question of timing (and 
> >>>>> probably
> >>>>> the correct spot to look into $.live() ).
>
> >>>>> Anyway, I had some simple code to get the position for a div to appear
> >>>>> at the center of the viewport:
>
> >>>>>     getCenterPosition: function(targetWidth,targetHeight) {
> >>>>>       var win = $(window);
> >>>>>       var target = {
> >>>>>         top: Math.round((win.height()-targetHeight)/2)+win.scrollTop(),
> >>>>>         left: Math.round((win.width()-targetWidth)/2)+win.scrollLeft()
> >>>>>       }
> >>>>>       if (target.top<0) target.top = 0;
> >>>>>       if (target.left<0) target.left = 0;
> >>>>>       return target;
> >>>>>     },
>
> >>>>> It was cross-browser and quite simple indeed.
>
> >>>>> Problem is, in 1.3.2, windows dimensions are those of the whole body,
> >>>>> not just the viewport. I turned the code upside/down but just can't 
> >>>>> find the
> >>>>> proper mean to do the exact same thing with the changes that probably
> >>>>> occured at 1.3.0.
>
> >>>>> Since you all know the internals of jQuery, I guess this is as good a
> >>>>> place to ask for ideas or pointers.
>
> >>>>> Take care all,
>
> >>>>> -- Julian
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery Development" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/jquery-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to