Skip to content

Commit

Permalink
fixed issue about alignment error window
Browse files Browse the repository at this point in the history
  • Loading branch information
hsnaydd committed Jun 21, 2014
1 parent d2b334b commit 4f2e3b3
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/validetta.js
Original file line number Diff line number Diff line change
Expand Up @@ -440,15 +440,13 @@
errorObject.className = this.options.errorTemplateClass;
// if error display is bubble, calculate to positions
if( this.options.display === 'bubble' ) {
var pos, W, H, T;
var pos, W;
// !! Here, JQuery functions are using to support the IE8
pos = $( el ).position();
W = $( el ).width();
H = $( el ).height();
T= pos.top ;
W = $( el ).outerWidth();
$( errorObject ).empty().css({
'left' : pos.left + W + 30 +'px',
'top' : T +'px'
'left' : pos.left + W + 15 +'px',
'top' : pos.top +'px'
});
}
elParent.appendChild( errorObject );
Expand Down

0 comments on commit 4f2e3b3

Please sign in to comment.