Wave
  1. Wave
  2. WAVE-344

Gadgets loaded before width is set

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Extentions
    • Labels:

      Description

      When a gadget is loaded, the gadget itself is loaded before the gadget size is set. For gadgets like the maps gadget, this results in content being centered around the top left corner instead of the middle of the gadget frame. The gadget frame should be set to the default size before the gadget content is loaded, as it is done in Gwave.

        Activity

        Hide
        Jeremy Naegel added a comment -

        With other gadgets based on Maps, it can be even worse than badly centered content, like with this iGoogle gadget that use Google Maps to track satellites in real-time: http://www.google.fr/ig/directory?type=gadgets&url=www.n2yo.com/sat/gsat.xml (this gadget has always worked flawlessly in Google Wave and was also working perfectly in early versions of WiaB demo servers).

        When loading a wave with this Satellite Tracking Tool gadget (added via its http://www.n2yo.com/sat/gsat.xml URL), because the gadget container size isn't set yet, the gadget (or is it Maps?) apparently detects that there isn't enough room to display a map and simply display a grey background instead, thus totally breaking the gadget functionality.

        If you reload that same wave enough time, you may end up having a slowdown (is it on the WiaB server side or on the XML gadget hosting side?) that will make the gadget load after the gadget size is set. In those rare case you'll see this Satellite Tracking Tool gadget working flawlessly, proving that the gadget isn't faulty, but defeated by the container width loaded to late.

        Show
        Jeremy Naegel added a comment - With other gadgets based on Maps, it can be even worse than badly centered content, like with this iGoogle gadget that use Google Maps to track satellites in real-time: http://www.google.fr/ig/directory?type=gadgets&url=www.n2yo.com/sat/gsat.xml (this gadget has always worked flawlessly in Google Wave and was also working perfectly in early versions of WiaB demo servers). When loading a wave with this Satellite Tracking Tool gadget (added via its http://www.n2yo.com/sat/gsat.xml URL), because the gadget container size isn't set yet, the gadget (or is it Maps?) apparently detects that there isn't enough room to display a map and simply display a grey background instead, thus totally breaking the gadget functionality. If you reload that same wave enough time, you may end up having a slowdown (is it on the WiaB server side or on the XML gadget hosting side?) that will make the gadget load after the gadget size is set. In those rare case you'll see this Satellite Tracking Tool gadget working flawlessly, proving that the gadget isn't faulty, but defeated by the container width loaded to late.

          People

          • Assignee:
            Unassigned
            Reporter:
            Zachary Yaro
          • Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:

              Development