Skip to content

Commit dbf18fd

Browse files
author
Rafael J. Staib
committed
Add further improvements to the example layout
1 parent 3389ba4 commit dbf18fd

12 files changed

+23
-15
lines changed

JSteps.v11.suo

-19.5 KB
Binary file not shown.

JSteps/Content/examples.css

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@
115115
{
116116
position: relative;
117117
display: block;
118-
width: auto;
118+
width: 100%;
119119
height: 300px;
120120
overflow: hidden;
121121
}
@@ -124,8 +124,8 @@
124124
{
125125
float: left;
126126
position: absolute;
127-
width: auto;
128-
height: auto;
127+
width: 100%;
128+
height: 100%;
129129
padding: 0.5em;
130130
}
131131

@@ -168,7 +168,7 @@
168168
{
169169
position: relative;
170170
display: block;
171-
width: auto;
171+
width: 100%;
172172
height: 2.5em;
173173
text-align: right;
174174
margin-top: 1em;

JSteps/JSteps.csproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,9 @@
199199
<Content Include="Views\Examples\Index.cshtml" />
200200
<Content Include="Views\About\Index.cshtml" />
201201
<Content Include="Views\Donation\Success.cshtml" />
202+
<Content Include="Scripts\jquery.steps.min.js.map">
203+
<DependentUpon>jquery.steps.js</DependentUpon>
204+
</Content>
202205
</ItemGroup>
203206
<PropertyGroup>
204207
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">10.0</VisualStudioVersion>

JSteps/Scripts/jquery.steps.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -614,8 +614,8 @@ function render(wizard, options, state)
614614
var wrapperTemplate = "<{0} class=\"{1}\">{2}</{0}>",
615615
orientation = getValidEnumValue(stepsOrientation, options.stepsOrientation),
616616
verticalCssClass = (orientation === stepsOrientation.vertical) ? " vertical" : "",
617-
contentWrapper = $(format(wrapperTemplate, options.contentContainerTag, "content", wizard.html())),
618-
stepsWrapper = $(format(wrapperTemplate, options.stepsContainerTag, "steps", "<ul role=\"tablist\"></ul>")),
617+
contentWrapper = $(format(wrapperTemplate, options.contentContainerTag, "content " + options.clearFixCssClass, wizard.html())),
618+
stepsWrapper = $(format(wrapperTemplate, options.stepsContainerTag, "steps " + options.clearFixCssClass, "<ul role=\"tablist\"></ul>")),
619619
stepTitles = contentWrapper.children(options.headerTag),
620620
stepContents = contentWrapper.children(options.bodyTag);
621621

@@ -655,7 +655,7 @@ function renderPagination(wizard, options, state)
655655
{
656656
if (options.enablePagination)
657657
{
658-
var pagination = "<{0} class=\"actions\"><ul role=\"menu\" aria-label=\"{1}\">{2}</ul></{0}>",
658+
var pagination = "<{0} class=\"actions {1}\"><ul role=\"menu\" aria-label=\"{2}\">{3}</ul></{0}>",
659659
buttonTemplate = "<li><a href=\"#{0}\" role=\"menuitem\">{1}</a></li>",
660660
buttons = "";
661661

@@ -671,7 +671,8 @@ function renderPagination(wizard, options, state)
671671
buttons += format(buttonTemplate, "finish", options.labels.finish);
672672
}
673673

674-
wizard.append(format(pagination, options.actionContainerTag, options.labels.pagination, buttons));
674+
wizard.append(format(pagination, options.actionContainerTag, options.clearFixCssClass,
675+
options.labels.pagination, buttons));
675676

676677
refreshPagination(wizard, options, state);
677678
loadAsyncContent(wizard, options, state);
@@ -793,7 +794,7 @@ function startTransitionEffect(wizard, options, state, index, oldIndex)
793794
var outerWidth = currentStep.outerWidth(true),
794795
posFadeOut = (index > oldIndex) ? -(outerWidth) : outerWidth,
795796
posFadeIn = (index > oldIndex) ? outerWidth : -(outerWidth),
796-
posLeft = currentStep.parent().position().left;
797+
posLeft = 0; //currentStep.parent().position().left;
797798

798799
currentStep.animate({ left: posFadeOut }, effectSpeed,
799800
function () { $(this)._hideAria(); }).promise();

JSteps/Scripts/jquery.steps.min.js

Lines changed: 2 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

JSteps/Scripts/jquery.steps.min.js.map

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

JSteps/bin/JSteps.dll

0 Bytes
Binary file not shown.

JSteps/bin/JSteps.pdb

0 Bytes
Binary file not shown.
Binary file not shown.
Binary file not shown.

JSteps/obj/Debug/JSteps.dll

0 Bytes
Binary file not shown.

JSteps/obj/Debug/JSteps.pdb

0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)