-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from visuale/nodejs
Documentation content with new spacing fix.
- Loading branch information
Showing
6 changed files
with
50 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
angular.module('jboss-forge').controller('docDivHeightCtrl',function($scope) { | ||
$scope.$watch('$viewContentLoaded', function(){ | ||
setTimeout('initDocumentationJS()',500); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// These scripts manage the height values of the individual documentation page divs. | ||
function initDocumentationJS() { | ||
if($('.row.documentation-flex-boxes').length) { | ||
heightMatchDocDivs(); | ||
} | ||
} | ||
|
||
|
||
//Match heights of .info-row div within each .documentation-item | ||
function heightMatchDocDivs() { | ||
var iArr = new Array(); | ||
|
||
$('.info-row').each(function(i,e){ | ||
iArr.push($(this).outerHeight()); | ||
}); | ||
|
||
//Max value | ||
var heightVal = Math.max.apply(Math,iArr); | ||
|
||
$('.info-row').css({'height':heightVal + 'px'}); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters