Changeset a21d87d in osmose-frontend


Ignore:
Timestamp:
Oct 26, 2012 8:54:00 PM (6 years ago)
Author:
Jocelyn Jaubert <jocelyn.jaubert@…>
Branches:
master
Children:
7898057
Parents:
3aad5cc
git-author:
Jocelyn Jaubert <jocelyn.jaubert@…> (26/10/2012 19:35:58)
git-committer:
Jocelyn Jaubert <jocelyn.jaubert@…> (26/10/2012 20:54:00)
Message:

Fix bubble height so that we don't have two scrollbars

File:
1 edited

Legend:

Unmodified
Added
Removed
  • static/map/DynPoi.js

    r3aad5cc ra21d87d  
    104104} 
    105105 
     106function fixBubbleHeigth(id) { 
     107  var height = $("div#popup-" + id + " .bulle_verif").height() + $("div#popup-" + id + " .bulle_maj").height(); 
     108  $("div#popup-" + id + " .bulle_msg").height($("div#popup-" + id).parent().height() - height); 
     109} 
     110 
    106111OpenLayers.Layer.DynPoi = OpenLayers.Class(OpenLayers.Layer.Markers, { 
    107112 
     
    355360                    this.popup.setContentHTML(content); 
    356361                    this.downloaded = true; 
     362 
     363                    fixBubbleHeigth(this.popup.feature.data.marker_id); 
     364 
    357365                }, 
    358366                failure: function (ajaxRequest) { 
Note: See TracChangeset for help on using the changeset viewer.