Changeset 6264


Ignore:
Timestamp:
Apr 8, 2013, 1:38:47 PM (10 years ago)
Author:
Nicklas Nordborg
Message:

Fixes #1750: Popup windows are not scaled to the current font size

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.2-stable/www/include/scripts/main.js

    r6248 r6264  
    141141    if (window.top != window && window.top.Main)
    142142    {
     143      // Rescale the width and height here since the window.top.Main scale is always '1'.
     144      var scale = getScale();
     145      width = width * scale;
     146      height = height * scale;
    143147      window.top.Main.openPopup(url, name, width, height, options, parentWin);
    144148      return;
    145149    }
    146    
    147     // Rescale the width and height
    148     var scale = getScale();
    149     width = width * scale;
    150     height = height * scale;
    151150   
    152151    /*
Note: See TracChangeset for help on using the changeset viewer.