×

Welcome to TagMyCode

Please login or create account to add a snippet.
1
0
 
0
Language: Javascript
Posted by: David Rodríguez
Added: Nov 10, 2011 8:42 AM
Modified: Nov 10, 2011 8:44 AM
Views: 63
If you create a datepicker in the right side of your page, probably will overflow and add scroll horizontally. This fixes this behaviour
  1. beforeShow: function(input, inst)
  2.     {
  3.         inst.dpDiv.css({marginTop: -input.offsetHeight + 'px', marginLeft: input.offsetWidth + 'px'});
  4.     }