Loading ...
Sorry, an error occurred while loading the content.

Resize - bug? call http target

Expand Messages
  • evolab_pm
    Hmm ... I have integrated the Resize utility into a portlet. It works perfectly but there is one problem. It keeps calling the http target each time the event
    Message 1 of 5 , Feb 29, 2008
    • 0 Attachment
      Hmm ...

      I have integrated the Resize utility into a portlet. It works
      perfectly but there is one problem.

      It keeps calling the http target each time the event "resize" is fired.

      Obviously it only appears when I set a break point into my server as I
      cannot tell anything on the client.

      I traced it down step by step into the YAHOO.util.Resize.resize()
      method and it does it when it fires the 'resize' event.

      I believe it is a bug in YUI resize utility. Any idea how to fix it?
    • Dav Glass
      I don t follow what the issue is, can you please file a bug on SourceForge with an exact step by step repro of the issue.. Thanks Dav Dav Glass
      Message 2 of 5 , Feb 29, 2008
      • 0 Attachment
        I don't follow what the issue is, can you please file a bug on SourceForge with an exact step by step repro of the issue..

        Thanks
        Dav

        Dav Glass
        dav.glass@...
        blog.davglass.com



        + Windows: n. - The most successful computer virus, ever. +
        + A computer without a Microsoft operating system is like a dog
        without bricks tied to its head +
        + A Microsoft Certified Systems Engineer is to computing what a
        McDonalds Certified Food Specialist is to fine cuisine +

        ----- Original Message ----
        From: evolab_pm <philippe.marzin@...>
        To: ydn-javascript@yahoogroups.com
        Sent: Friday, February 29, 2008 3:46:25 AM
        Subject: [ydn-javascript] Resize - bug? call http target

        Hmm ...

        I have integrated the Resize utility into a portlet. It works
        perfectly but there is one problem.

        It keeps calling the http target each time the event "resize" is fired.

        Obviously it only appears when I set a break point into my server as I
        cannot tell anything on the client.

        I traced it down step by step into the YAHOO.util.Resize.resize()
        method and it does it when it fires the 'resize' event.

        I believe it is a bug in YUI resize utility. Any idea how to fix it?




        Yahoo! Groups Links
      • evolab_pm
        What part is not clear? I pretty much reuse an example given in Resize but I wrap it into a portlet request - could be straight http. I would not have noticed
        Message 3 of 5 , Feb 29, 2008
        • 0 Attachment
          What part is not clear? I pretty much reuse an example given in Resize
          but I wrap it into a portlet request - could be straight http.

          I would not have noticed it if I had not my server running in debug
          mode under eclipse.

          On the client I run firefox 2 with firebug, and use firebug to set
          breakpoint into the YUI 2.5.0 resize/resize-beta.js. It happens inside
          the method resize() at the line "this.fireEvent('resize', { ev:
          'resize', target: this, height: h, width: w, top: t, left: l });"

          It should be easy to reproduce. I set a brakpoint in my java server
          code and it breaks exactly when the client execute the line.

          It behaves like YUI resize evaluatesthe initial "page" and do nothing
          with it.

          I would be happy to continue debugging but I need some indication...
          It's dark for my knowledge ;(












          --- In ydn-javascript@yahoogroups.com, Dav Glass <dav.glass@...> wrote:
          >
          > I don't follow what the issue is, can you please file a bug on
          SourceForge with an exact step by step repro of the issue..
          >
          > Thanks
          > Dav
          >
          > Dav Glass
          > dav.glass@...
          > blog.davglass.com
          >
          >
          >
          > + Windows: n. - The most successful computer virus, ever. +
          > + A computer without a Microsoft operating system is like a dog
          > without bricks tied to its head +
          > + A Microsoft Certified Systems Engineer is to computing what a
          > McDonalds Certified Food Specialist is to fine cuisine +
          >
          > ----- Original Message ----
          > From: evolab_pm <philippe.marzin@...>
          > To: ydn-javascript@yahoogroups.com
          > Sent: Friday, February 29, 2008 3:46:25 AM
          > Subject: [ydn-javascript] Resize - bug? call http target
          >
          > Hmm ...
          >
          > I have integrated the Resize utility into a portlet. It works
          > perfectly but there is one problem.
          >
          > It keeps calling the http target each time the event "resize" is fired.
          >
          > Obviously it only appears when I set a break point into my server as I
          > cannot tell anything on the client.
          >
          > I traced it down step by step into the YAHOO.util.Resize.resize()
          > method and it does it when it fires the 'resize' event.
          >
          > I believe it is a bug in YUI resize utility. Any idea how to fix it?
          >
          >
          >
          >
          > Yahoo! Groups Links
          >
        • Dav Glass
          Can you post a link to an example? I don t use Java or have access to a server that I can reproduce it on.. I can t begin to debug what I can t see :) Thanks
          Message 4 of 5 , Feb 29, 2008
          • 0 Attachment
            Can you post a link to an example? I don't use Java or have access to a server that I can reproduce it on..

            I can't begin to debug what I can't see :)

            Thanks
            Dav

            Dav Glass
            dav.glass@...
            blog.davglass.com



            + Windows: n. - The most successful computer virus, ever. +
            + A computer without a Microsoft operating system is like a dog
            without bricks tied to its head +
            + A Microsoft Certified Systems Engineer is to computing what a
            McDonalds Certified Food Specialist is to fine cuisine +

            ----- Original Message ----
            From: evolab_pm <philippe.marzin@...>
            To: ydn-javascript@yahoogroups.com
            Sent: Friday, February 29, 2008 12:07:14 PM
            Subject: [ydn-javascript] Re: Resize - bug? call http target

            What part is not clear? I pretty much reuse an example given in Resize
            but I wrap it into a portlet request - could be straight http.

            I would not have noticed it if I had not my server running in debug
            mode under eclipse.

            On the client I run firefox 2 with firebug, and use firebug to set
            breakpoint into the YUI 2.5.0 resize/resize-beta.js. It happens inside
            the method resize() at the line "this.fireEvent('resize', { ev:
            'resize', target: this, height: h, width: w, top: t, left: l });"

            It should be easy to reproduce. I set a brakpoint in my java server
            code and it breaks exactly when the client execute the line.

            It behaves like YUI resize evaluatesthe initial "page" and do nothing
            with it.

            I would be happy to continue debugging but I need some indication...
            It's dark for my knowledge ;(












            --- In ydn-javascript@yahoogroups.com, Dav Glass <dav.glass@...> wrote:
            >
            > I don't follow what the issue is, can you please file a bug on
            SourceForge with an exact step by step repro of the issue..
            >
            > Thanks
            > Dav
            >
            > Dav Glass
            > dav.glass@...
            > blog.davglass.com
            >
            >
            >
            > + Windows: n. - The most successful computer virus, ever. +
            > + A computer without a Microsoft operating system is like a dog
            > without bricks tied to its head +
            > + A Microsoft Certified Systems Engineer is to computing what a
            > McDonalds Certified Food Specialist is to fine cuisine +
            >
            > ----- Original Message ----
            > From: evolab_pm <philippe.marzin@...>
            > To: ydn-javascript@yahoogroups.com
            > Sent: Friday, February 29, 2008 3:46:25 AM
            > Subject: [ydn-javascript] Resize - bug? call http target
            >
            > Hmm ...
            >
            > I have integrated the Resize utility into a portlet. It works
            > perfectly but there is one problem.
            >
            > It keeps calling the http target each time the event "resize" is fired.
            >
            > Obviously it only appears when I set a break point into my server as I
            > cannot tell anything on the client.
            >
            > I traced it down step by step into the YAHOO.util.Resize.resize()
            > method and it does it when it fires the 'resize' event.
            >
            > I believe it is a bug in YUI resize utility. Any idea how to fix it?
            >
            >
            >
            >
            > Yahoo! Groups Links
            >





            Yahoo! Groups Links
          • evolab_pm
            Not so easily. Anyway, I fixed the problem myself. Let me explain it to you so you can see it. Perhaps you will catch something else... I have 4 div and 2
            Message 5 of 5 , Mar 1 3:57 AM
            • 0 Attachment
              Not so easily.

              Anyway, I fixed the problem myself. Let me explain it to you so you
              can see it. Perhaps you will catch something else...

              I have 4 div and 2 resizes:
              'rsz-g-g' is divided in 3 parts 'rsz-g-g1','rsz-g-g2', 'rsz-g-g3'
              'rsz-g-g1' has a resize with right handle
              'rsz-g-g3' has a resize with left handle

              ... I added some code to resize them whenever the window resizes.
              And the problem ONLY HAPPENS within the resize1.resize(). If I remove
              these lines it does not happen.

              YAHOO.util.Event.on(window, 'resize', function(ev) {
              var newsize = parseInt(Dom.getStyle('rsz-g-g', 'width'), 10);
              var size1 = parseInt(Dom.getStyle(col1, 'width'), 10);
              var d= newsize - size;size= newsize;
              if (d > 0) resize1.resize(null,0,size1,0,0,true);
              else if ((size1 + d) > 150) resize1.resize(null,0,size1+d,0,0,true);
              else resize1.resize(null,0,150,0,0,true);
              }

              The FIX was simply to pass "ev" to the resize() instead of null.

              Why? I have no clue, I just tried.

              Thanks for your help.

              Philippe



              --- In ydn-javascript@yahoogroups.com, Dav Glass <dav.glass@...> wrote:
              >
              > Can you post a link to an example? I don't use Java or have access
              to a server that I can reproduce it on..
              >
              > I can't begin to debug what I can't see :)
              >
              > Thanks
              > Dav
              >
              > Dav Glass
              > dav.glass@...
              > blog.davglass.com
              >
              >
              >
              > + Windows: n. - The most successful computer virus, ever. +
              > + A computer without a Microsoft operating system is like a dog
              > without bricks tied to its head +
              > + A Microsoft Certified Systems Engineer is to computing what a
              > McDonalds Certified Food Specialist is to fine cuisine +
              >
              > ----- Original Message ----
              > From: evolab_pm <philippe.marzin@...>
              > To: ydn-javascript@yahoogroups.com
              > Sent: Friday, February 29, 2008 12:07:14 PM
              > Subject: [ydn-javascript] Re: Resize - bug? call http target
              >
              > What part is not clear? I pretty much reuse an example given in Resize
              > but I wrap it into a portlet request - could be straight http.
              >
              > I would not have noticed it if I had not my server running in debug
              > mode under eclipse.
              >
              > On the client I run firefox 2 with firebug, and use firebug to set
              > breakpoint into the YUI 2.5.0 resize/resize-beta.js. It happens inside
              > the method resize() at the line "this.fireEvent('resize', { ev:
              > 'resize', target: this, height: h, width: w, top: t, left: l });"
              >
              > It should be easy to reproduce. I set a brakpoint in my java server
              > code and it breaks exactly when the client execute the line.
              >
              > It behaves like YUI resize evaluatesthe initial "page" and do nothing
              > with it.
              >
              > I would be happy to continue debugging but I need some indication...
              > It's dark for my knowledge ;(
              >
              >
              >
              >
              >
              >
              >
              >
              >
              >
              >
              >
              > --- In ydn-javascript@yahoogroups.com, Dav Glass <dav.glass@> wrote:
              > >
              > > I don't follow what the issue is, can you please file a bug on
              > SourceForge with an exact step by step repro of the issue..
              > >
              > > Thanks
              > > Dav
              > >
              > > Dav Glass
              > > dav.glass@
              > > blog.davglass.com
              > >
              > >
              > >
              > > + Windows: n. - The most successful computer virus, ever. +
              > > + A computer without a Microsoft operating system is like a dog
              > > without bricks tied to its head +
              > > + A Microsoft Certified Systems Engineer is to computing what a
              > > McDonalds Certified Food Specialist is to fine cuisine +
              > >
              > > ----- Original Message ----
              > > From: evolab_pm <philippe.marzin@>
              > > To: ydn-javascript@yahoogroups.com
              > > Sent: Friday, February 29, 2008 3:46:25 AM
              > > Subject: [ydn-javascript] Resize - bug? call http target
              > >
              > > Hmm ...
              > >
              > > I have integrated the Resize utility into a portlet. It works
              > > perfectly but there is one problem.
              > >
              > > It keeps calling the http target each time the event "resize" is
              fired.
              > >
              > > Obviously it only appears when I set a break point into my server as I
              > > cannot tell anything on the client.
              > >
              > > I traced it down step by step into the YAHOO.util.Resize.resize()
              > > method and it does it when it fires the 'resize' event.
              > >
              > > I believe it is a bug in YUI resize utility. Any idea how to fix it?
              > >
              > >
              > >
              > >
              > > Yahoo! Groups Links
              > >
              >
              >
              >
              >
              >
              > Yahoo! Groups Links
              >
            Your message has been successfully submitted and would be delivered to recipients shortly.