Changeset 53337 in spip-zone


Ignore:
Timestamp:
Oct 11, 2011, 10:11:18 PM (8 years ago)
Author:
Nathan.spiping@…
Message:

Correction proposee par Manuel Schmalstieg <webdev@…>:
http://code.google.com/p/jquery-timepicker/issues/detail?id=7

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/agenda/trunk/javascript/jquery.timePicker.js

    r25003 r53337  
    7171    // Store ananymous function in variable since it's used twice.
    7272    var showPicker = function() {
    73       $tpDiv.show(); // Show picker.
     73      // Correction proposée par Manuel Schmalstieg <webdev@ms-studio.net>:
     74      // http://code.google.com/p/jquery-timepicker/issues/detail?id=7
     75      // original: $tpDiv.show(); // Show picker.
     76      var elmOffset = $(elm).offset();
     77      $tpDiv.show().css({'top':elmOffset.top, 'left':elmOffset.left});
     78      // This forces css position calculation when after the element is appended to the page.
     79      // Fin de correction 20111011
    7480      $tpDiv.mouseover(function() { // Have to use mouseover instead of mousedown because of Opera
    7581        tpOver = true;
Note: See TracChangeset for help on using the changeset viewer.