alignment mispell

master
Chakib Benziane 12 years ago
parent bd2ed08c56
commit f8d26ea41a

@ -188,7 +188,7 @@
<br />
<br />
<pre class="prettyprint linenums">&lt;button class=&quot;magicBtn icon&quot;&gt;&lt;i class=&quot;icon-search&quot;&gt;&lt;/i&gt;&lt;/button&gt;<br/>&lt;button class=&quot;magicBtn icon&quot;&gt;&lt;i class=&quot;icon-user&quot;&gt;&lt;/i&gt;&lt;/button&gt;<br/></pre>
<pre class="prettyprint linenums">$('.icon').magicBtn({hover: true, alignement: 'top'});<br/>$('.icon').magicBtn('show');</pre>
<pre class="prettyprint linenums">$('.icon').magicBtn({hover: true, alignment: 'top'});<br/>$('.icon').magicBtn('show');</pre>
</div>
</div>
@ -223,7 +223,7 @@
</tr>
</thead>
<tr>
<td>alignement</td>
<td>alignment</td>
<td>string</td>
<td>center</td>
<td>start showing buttons from center, 1 in middle, even on ones top and odd ones on bottom </td>
@ -275,13 +275,13 @@
$('.hover').magicBtn({hover: true});
$('.hover').magicBtn('show');
$('.icon').magicBtn({hover: true, alignement: 'top'});
$('.icon').magicBtn({hover: true, alignment: 'top'});
$('.icon').magicBtn('show');
$('.well .magicBtn').magicBtn('show');
$('.hero').magicBtn({hover: true, alignement: 'top'});
$('.hero').magicBtn({hover: true, alignment: 'top'});
$('.hero-unit').hoverIntent({
over: function () {
$('.hero').magicBtn('show');

@ -87,7 +87,7 @@ function ($) {
calculatePosition: function (direction) {
var space = (this.$currentBtnNb === 1) ? 0 : this.options.betweenSpace
var left = this.$parentPosition.left + this.$parentWidth
switch (this.options.alignement) {
switch (this.options.alignment) {
case 'top':
this.$top = (
(this.$currentBtnNb * this.$height) - this.$height + this.$parentPosition.top + (space * (this.$currentBtnNb - 1)))
@ -187,7 +187,7 @@ function ($) {
$.fn.magicBtn.defaults = {
direction: 'right',
betweenSpace: 2,
alignement: 'center',
alignment: 'center',
hover: false
}

@ -87,7 +87,7 @@ function ($) {
calculatePosition: function (direction) {
var space = (this.$currentBtnNb === 1) ? 0 : this.options.betweenSpace
var left = this.$parentPosition.left + this.$parentWidth
switch (this.options.alignement) {
switch (this.options.alignment) {
case 'top':
this.$top = (
(this.$currentBtnNb * this.$height) - this.$height + this.$parentPosition.top + (space * (this.$currentBtnNb - 1)))
@ -187,7 +187,7 @@ function ($) {
$.fn.magicBtn.defaults = {
direction: 'right',
betweenSpace: 2,
alignement: 'center',
alignment: 'center',
hover: false
}

Loading…
Cancel
Save