keep first/last buttons within userform-progress div

This commit is contained in:
scott1702 2015-08-13 12:39:04 +12:00
parent 7a131db8f6
commit 53a9aafbe5
1 changed files with 8 additions and 0 deletions

View File

@ -431,6 +431,14 @@ jQuery(function ($) {
buttonOffset = -1 * ($button.innerWidth() / 2);
$button.css({left: leftPercent, marginLeft: buttonOffset});
// First and last buttons are kept within userform-progress container
if (index === self.$jsAlign.length - 1) {
$button.css({marginLeft: buttonOffset * 2});
} else if (index === 0) {
$button.css({marginLeft: 0});
}
});
this.update(1);