Menu

#2 Popup doesn't resize when resize from Javascript is disabled

journeysat-1.0.1
open-accepted
Basic Skin (2)
3
2005-09-01
2005-09-01
No

The popup window for the images doesn't resize when
resize from Javascript is disabled in the browser.

Browser: Firefox 1.0.6
Tools / Options / Web Features / Enablae Java Scripts /
Advanced / Move or Resize existing windows is disabled

The image loads correctly but the popup doesn't resize
and it cannot be resized manually.

Discussion

  • Paolo Montrasio

    Paolo Montrasio - 2005-09-01
    • status: open --> open-accepted
     
  • Paolo Montrasio

    Paolo Montrasio - 2005-09-01

    Logged In: YES
    user_id=1326316

    A possible fix is:

    1) load the image in the background
    2) display a popup window with a progress bar to provide
    feedback to users
    3) when the image is loaded, get its width and height and
    open a popup with the correct size
    4) load the image into it

    Disadvantages:
    1) disabling resize from Javascript isn't the default
    setting and people with the default setting will be
    penalized because they can't see the image being loaded
    progressively. The subjective application response time will
    be slowed down.

    To prevent that it would be nice to be able to check the
    resize capability, maybe opening a popup, resizing it and
    checking if it changed its size.

     
  • Paolo Montrasio

    Paolo Montrasio - 2005-09-01

    Logged In: YES
    user_id=1326316

    This is how the resize capability can be tested in Firefox
    and probably all the Mozilla browsers.

    Components.classes["@mozilla.org/preferences-service;1"].getService(Components.interfaces.nsIPrefService).getBranch(null).getBoolPref("dom.disable_window_move_resize")

    See code at
    http://lxr.mozilla.org/seamonkey/source/extensions/pref/autoconfig/src/prefcalls.js

     

Log in to post a comment.