Changeset 13804


Ignore:
Timestamp:
05/21/12 16:09:26 (12 years ago)
Author:
tbretz
Message:
Implemented the possibility to display always a square graphics and allow scrollbars if the table overflows in y
Location:
trunk/FACT++/www/smartfact
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/www/smartfact/index.css

    r13747 r13804  
     1body {
     2        overflow-x: hidden;
     3        overflow-y: auto;
     4}
     5
    16.thead {
    27        background: #23a0da url(img/gradient.png) bottom left repeat-x;
  • trunk/FACT++/www/smartfact/index.js

    r13768 r13804  
    202202    for (var i=0; i<args.length; i++)
    203203    {
     204        switch (args[i])
     205        {
     206        case "max": $("body").setAttribute("data-max", "yes"); continue;
     207        }
     208
    204209        var entry = args[i].split('=');
    205210        if (entry.length!=2)
     
    345350    table.cellPadding = "0px";
    346351    /*table.width = "100%";*/
    347     table.setAttribute("style", "overflow:hidden;position:fixed;top:0px;left:"+window.innerWidth+"px;");
     352    //table.setAttribute("style", "overflow:hidden;position:fixed;top:0px;left:"+window.innerWidth+"px;");
     353    table.setAttribute("style", "position:absolute;top:0px;left:"+window.innerWidth+"px;");
    348354
    349355    // -----------------------------------------------------
     
    725731        return;
    726732    }
    727 */
    728 
    729     var ih = H - h + parseInt(img.style.height, 10);
     733    */
     734
     735    var max = $("body").getAttribute("data-max")=="yes";
     736
     737
     738    var ih = max ? W : H - h + parseInt(img.style.height, 10);
    730739
    731740    img.style.width = W +"px";
Note: See TracChangeset for help on using the changeset viewer.