Permalink
Browse files

Merge pull request #335 from pborreli/patch-1

Fixing css inside tabs for developers profile
  • Loading branch information...
2 parents f721409 + e065023 commit 46c2f6a6e6885c8d626f1cc56308bff614ee29ba @stloyd stloyd committed Mar 12, 2013
Showing with 5 additions and 2 deletions.
  1. +5 −2 src/Knp/Bundle/KnpBundlesBundle/Resources/public/js/main.js
@@ -106,12 +106,15 @@
return event.preventDefault();
});
+ var titleHeight = 0;
$('.content-box article h3 a,.content-half article .bundle-info h2 a').each(function() {
var code = $(this);
var codeWidthReal = code.css('display', 'inline-block').width();
var codeWidthStyle = code.css('display', 'block').parent().width();
-
- code.parent().after($("<div></div>").css('height', code.height()));
+ if (code.height() > 0) {
+ titleHeight = code.height();
+ }
+ code.parent().after($("<div></div>").css('height', titleHeight));
code.parent().css({
width: codeWidthStyle,
position: 'absolute'

0 comments on commit 46c2f6a

Please sign in to comment.