Skip to content
This repository was archived by the owner on May 27, 2021. It is now read-only.

Commit 9df25b0

Browse files
committed
#17: The nav bar position is changed when showing the About modal
1 parent d817f2d commit 9df25b0

File tree

3 files changed

+13
-7
lines changed

3 files changed

+13
-7
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ v1.2.1 (2013/10/18)
88
* #13: Fix the width of device sub-menu
99
* #15: Set the Ajax loading indicator at the center of screen
1010
* #16: Cannot move the mouse out of the frame after resizing the frame
11+
* #17: The nav bar position is changed when showing the About modal
1112

1213
v1.2.0 (2013/09/27)
1314

app/css/style.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@
99
* @license MIT
1010
*/
1111

12+
/* The nav bar position will not be changed when showing the About modal */
13+
body.modal-open, .modal-open .navbar-fixed-top, .modal-open .navbar-fixed-bottom {
14+
margin-right: 0;
15+
}
16+
1217
.navbar {
1318
background: #fff;
1419
border-bottom: 1px solid #c0c0c0;

index.html

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,12 @@
8080
<div class="rt-ruler"></div>
8181
<!-- :ruler -->
8282

83+
<!-- dest-iframe: -->
84+
<div class="rt-iframe" ng-style="{ width: w / pxd + 15 + 'px', height: h / pxd + 'px' }" rt-resizable ng-show="!loading" id="iframe">
85+
<iframe ng-src="{{ frameSrc }}" rt-frame-loading></iframe>
86+
</div>
87+
<!-- :dest-iframe -->
88+
8389
<!-- about: -->
8490
<div class="modal fade" id="about">
8591
<div class="modal-dialog">
@@ -91,7 +97,7 @@ <h4 class="modal-title">About Responsive Test</h4>
9197
<div class="modal-body text-center">
9298
<p>
9399
v1.2.1<br />
94-
Created by Nguyen Huu Phuoc<br />
100+
Created by <a href="http://twitter.com/nghuuphuoc">Nguyen Huu Phuoc</a><br />
95101
&copy; 2013 <a href="http://apl.vn">APL Solutions</a>
96102
</p>
97103
<p>
@@ -109,12 +115,6 @@ <h4 class="modal-title">About Responsive Test</h4>
109115
</div>
110116
<!-- :about -->
111117

112-
<!-- dest-iframe: -->
113-
<div class="rt-iframe" ng-style="{ width: w / pxd + 15 + 'px', height: h / pxd + 'px' }" rt-resizable ng-show="!loading" id="iframe">
114-
<iframe ng-src="{{ frameSrc }}" rt-frame-loading></iframe>
115-
</div>
116-
<!-- :dest-iframe -->
117-
118118
<!-- fork-me -->
119119
<a href="https://github.com/nghuuphuoc/responsivetest"><img style="position: absolute; top: 0; right: 0; border: 0; z-index: 9999;" src="https://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png" alt="Fork ResponsiveTest on GitHub"></a>
120120

0 commit comments

Comments
 (0)