force calculatePostion when show method is called

master
Chakib.B (Spike) 12 years ago
parent 9984fa8671
commit 45aea0dfd6

@ -86,6 +86,8 @@ function ($) {
,
calculatePosition: function (direction) {
this.$parentPosition = this.$parentDiv.position();
this.$parentMarginLeft = this.$parentDiv.css('margin-left')
var space = (this.$currentBtnNb === 1) ? 0 : this.options.betweenSpace
var left = this.$parentPosition.left + this.$parentWidth
switch (this.options.alignment) {
@ -120,6 +122,7 @@ function ($) {
,
show: function () {
this.calculatePosition()
var $o = this.options
this.$element.css({
top: this.$top,

Loading…
Cancel
Save