Changeset 16624


Ignore:
Timestamp:
Jul 11, 2012, 5:53:36 PM (12 years ago)
Author:
cljosse
Message:

[extensions] Autosize fix compatibility with 2.4, fix left menu

Location:
extensions/Autosize
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • extensions/Autosize/css/autosize.css

    r16579 r16624  
    11 
    2 /* jQuery ui resizable */
    3 .ui-resizable { position: relative; }
    4 .ui-wrapper { border: 0; }
    5 .ui-wrapper input, .ui-wrapper textarea { border: 0; }
    6 
    7 /* Global handle styles */
    8 .ui-resizable-handle { position: absolute; display: none; font-size: 0.1px; }
    9 .ui-resizable .ui-resizable-handle { display: block; }
    10 body .ui-resizable-disabled .ui-resizable-handle { display: none; } /* use 'body' to make it more specific (css order) */
    11 body .ui-resizable-autohide .ui-resizable-handle { display: none; } /* use 'body' to make it more specific (css order) */
    12 .ui-resizable-n { cursor: n-resize; height: 6px; width: 100%; top: 0px; left: 0px; background: transparent url(images/resizable-n.gif) no-repeat scroll center top; }
    13 .ui-resizable-s { cursor: s-resize; height: 6px; width: 100%; bottom: 0px; left: 0px; background: transparent url(images/resizable-s.gif) no-repeat scroll center top; }
    14 .ui-resizable-e { cursor: e-resize; width: 6px; right: 0px; top: 0px; height: 100%; background: transparent url(images/resizable-e.gif) no-repeat scroll right center; }
    15 .ui-resizable-w { cursor: w-resize; width: 6px; left: 0px; top: 0px; height: 100%; background: transparent url(images/resizable-w.gif) no-repeat scroll right center; }
    16 .ui-resizable-se { cursor: se-resize; width: 9px; height: 9px; right: 0px; bottom: 0px; background: transparent url(images/resizable-se.gif); }
    17 .ui-resizable-sw { cursor: sw-resize; width: 9px; height: 9px; left: 0px; bottom: 0px; background: transparent url(images/resizable-sw.gif); }
    18 .ui-resizable-nw { cursor: nw-resize; width: 9px; height: 9px; left: 0px; top: 0px; background: transparent url(images/resizable-nw.gif); }
    19 .ui-resizable-ne { cursor: ne-resize; width: 9px; height: 9px; right: 0px; top: 0px; background: transparent url(images/resizable-ne.gif); }
    202#theImage {
    213    opacity: 100;
    224    filter: alpha(opacity:100);
    23     padding-top: 0px;
    24     padding-bottom: 0px;
    25     padding-left: 0px;
     5
    266}
    277body{
     
    5232 /* background-color: #FFFF00;*/
    5333}
    54 
     34#content {/*
     35   border: 5px solid #00FF00;
     36   */
     37}
    5538#theImage {
    56   /*margin: 10px;
    57  border: 10px solid #f0FFf0;
     39/*
     40 border: 5px solid #f0FFf0;
    5841  padding: 10px;
    59  
     42  margin: 10px;
    6043  background-color: #00FF00; 
    6144  */
  • extensions/Autosize/js/Affiche_script.js

    r16610 r16624  
    304304      };
    305305      options = jQuery.extend(defaults, options);
    306 
    307       jQuery("#the_page").css({ top: "0px" });
    308 
    309306      infos_theImageAndInfos = jQuery("#theImageAndInfos").infos(); // Cadre general
    310307      infos_theImage = jQuery("#theImage").infos();
     
    20542051      // theHeader
    20552052      //
     2053      infos_menubar = jQuery("#menubar").infos();
    20562054      infos_content = jQuery("#content").infos();
    20572055      // imageHeaderBar
     
    21482146        }
    21492147        width_theImage = (infos_body.width - new_width)
     2148        retrait_w += 20; //???
    21502149
    21512150      } else if (theme.match(RegExp("stripped", "gi"))) {
     
    21572156      } else {
    21582157        width_theImage = (infos_body.width);
     2158        marginLeft = infos_menubar.margin.left + 1;
     2159        marginLeft = infos_content.margin.left;
     2160        infos_menubar_dl = jQuery("#menubar dl").infos();
     2161        marginLeft = infos_menubar_dl.margin.left + infos_menubar_dl.left + infos_menubar_dl.width;
     2162        if (infos_menubar_dl.visible == "false")
     2163         if (!theme.match(RegExp("sylvia", "gi")))
     2164            marginLeft = 0;
     2165        jQuery("#content").css({ marginLeft: marginLeft+"px" });
    21592166      }
    21602167
     
    21722179      retrait_h += (b * 2) - 5;
    21732180      retrait_img += 5;
    2174       retrait_w += 20; //???
     2181
    21752182
    21762183      height_theImage = jQuery(window).height() - retrait_h;
  • extensions/Autosize/js/autosize.dimensions.js

    r16579 r16624  
    206206        Top = Cl_Position.top;
    207207
     208       visible= jQuery(elem).is(':visible');
    208209        results = {src: elem.src || "none",
     210          visible: visible || "false",
    209211          position: myposition,
    210212          top: Top,
Note: See TracChangeset for help on using the changeset viewer.