OpenLayers OpenLayers

Changeset 6292

Show
Ignore:
Timestamp:
02/15/08 02:57:24 (1 year ago)
Author:
euzuro
Message:

in a continued effor to make this the best popup ever, add overflow ability to the contents div. this requires allocating an extra bit of px for the scrollbar.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • sandbox/euzuro/pop/examples/framedPopups.html

    r6238 r6292  
    4141            cloudFeature = new OpenLayers.Feature(layer, ll);  
    4242            cloudFeature.popupClass = OpenLayers.Popup.FramedCloud; 
    43             cloudFeature.data.popupContentHTML = "Lorem Ipsum is simply dummy text of the printing and <br/>typesetting industry. Lorem <br/>Ipsum has been the <br/>industry's standard dummy text <br/>ever since the 1500s, when <br/>an unknown printer took a galley of <br/>type and scrambled it to make a type specimen book. It has <br/>survived not only five centuries, but also <br/>the leap into electronic typesetting, <br/>remaining <br/>essentially <br/>unchanged. It was popularised in <br/>the 1960s with <br/>the <br/>release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop <br/>publishing software like Aldus PageMaker including versions of Lorem Ipsum."; 
     43//            cloudFeature.data.popupContentHTML = "Lorem Ipsum is simply dummy text of the printing and <br/>typesetting industry. Lorem <br/>Ipsum has been the <br/>industry's standard dummy text <br/>ever since the 1500s, when <br/>an unknown printer took a galley of <br/>type and scrambled it to make a type specimen book. It has <br/>survived not only five centuries, but also <br/>the leap into electronic typesetting, <br/>remaining <br/>essentially <br/>unchanged. It was popularised in <br/>the 1960s with <br/>the <br/>release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop <br/>publishing software like Aldus PageMaker including versions of Lorem Ipsum."; 
     44            cloudFeature.data.popupContentHTML = "Lorem Ipsum is simply dummy text of the printing and <br/>typesetting industry. Lorem <br/>Ipsum has been the <br/>industry's standard dummy text <br/>ever since the 1500s, when <br/>an unknown printer took a galley of <br/>type and scrambled it to make a type specimen book. It has <br/>survived not only five centuries, but also <br/>the leap into electronic typesetting, <br/>remaining <br/>essentially <br/>unchanged. It was popularised in <br/>the 1960s with <br/>the <br/>release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop <br/>publishing software like Aldus PageMaker including versions of Lorem Ipsum." + 
     45                "Lorem Ipsum is simply dummy text of the printing and <br/>typesetting industry. Lorem <br/>Ipsum has been the <br/>industry's standard dummy text <br/>ever since the 1500s, when <br/>an unknown printer took a galley of <br/>type and scrambled it to make a type specimen book. It has <br/>survived not only five centuries, but also <br/>the leap into electronic typesetting, <br/>remaining <br/>essentially <br/>unchanged. It was popularised in <br/>the 1960s with <br/>the <br/>release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop <br/>publishing software like Aldus PageMaker including versions of Lorem Ipsum." + 
     46                "Lorem Ipsum is simply dummy text of the printing and <br/>typesetting industry. Lorem <br/>Ipsum has been the <br/>industry's standard dummy text <br/>ever since the 1500s, when <br/>an unknown printer took a galley of <br/>type and scrambled it to make a type specimen book. It has <br/>survived not only five centuries, but also <br/>the leap into electronic typesetting, <br/>remaining <br/>essentially <br/>unchanged. It was popularised in <br/>the 1960s with <br/>the <br/>release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop <br/>publishing software like Aldus PageMaker including versions of Lorem Ipsum."; 
    4447             
    4548            cloudMarker = cloudFeature.createMarker(); 
  • sandbox/euzuro/pop/lib/OpenLayers/Popup/FramedCloud.js

    r6289 r6292  
    5555        "tl": { 
    5656            'offset': new OpenLayers.Pixel(55, -10), 
    57             'padding': new OpenLayers.Bounds(15, 75, 32, 15), 
     57            'padding': new OpenLayers.Bounds(15, 75, 60, 15), 
    5858            'blocks': [ 
    5959                { // top-left 
     
    8181        "tr": { 
    8282            'offset': new OpenLayers.Pixel(-35, -10), 
    83             'padding': new OpenLayers.Bounds(15, 75, 32, 15), 
     83            'padding': new OpenLayers.Bounds(15, 75, 60, 15), 
    8484            'blocks': [ 
    8585                { // top-left 
     
    112112        "bl": { 
    113113            'offset': new OpenLayers.Pixel(55, 0), 
    114             'padding': new OpenLayers.Bounds(15, 45, 32, 53), 
     114            'padding': new OpenLayers.Bounds(15, 45, 60, 53), 
    115115            'blocks': [ 
    116116                { // top-left 
     
    143143        "br": { 
    144144            'offset': new OpenLayers.Pixel(-35, 0), 
    145             'padding': new OpenLayers.Bounds(15, 45, 32, 53), 
     145            'padding': new OpenLayers.Bounds(15, 45, 60, 53), 
    146146            'blocks': [ 
    147147                { // top-left 
     
    184184     * {<OpenLayers.Size>} 
    185185     */ 
    186     maxSize: new OpenLayers.Size(628, 660), 
     186    maxSize: new OpenLayers.Size(600, 660), 
    187187     
    188188    /**  
     
    204204 
    205205        OpenLayers.Popup.Framed.prototype.initialize.apply(this, arguments); 
     206        this.contentDiv.style.overflow = "auto"; 
    206207    }, 
    207208