From 44073a0e14301effd27515083a2ba5d53396a02c Mon Sep 17 00:00:00 2001 From: Jouni Koivuviita Date: Tue, 13 Apr 2010 11:14:16 +0000 Subject: [PATCH] Demo-page update svn changeset:12507/svn branch:6.3 --- WebContent/index.html | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/WebContent/index.html b/WebContent/index.html index 64059d3787..a6dbe97940 100644 --- a/WebContent/index.html +++ b/WebContent/index.html @@ -322,14 +322,14 @@ -
  • +
  • Free for Everybody

    Apache Software License 2.0

    Vaadin is licensed under the Apache Software License 2.0 which means you can use it both for non-commercial and commercial projects free of charge.

  • -
  • +
  • Be a Part of the Vaadin Community

    Forums
    @@ -522,8 +522,8 @@ var height = 0; $("#reasons > li").each(function(i, li) { li = $(li); - if(li.height() > height) { - height = li.outerHeight(); + if(this.offsetHeight > height) { + height = this.offsetHeight; } li.css({"position":"absolute"}); if(i>0){ @@ -573,6 +573,19 @@ tabContent.show(); } + function fixTabHeight() { + var height = 0; + $("#reasons > li").each(function() { + var display = this.style.display; + this.style.display = "block"; + if(this.offsetHeight > height) { + height = this.offsetHeight; + } + this.style.display = display; + }); + $("#reasons").height(height); + } + $(document).ready(function(){ doTabs(); // Initialize history plugin. @@ -582,6 +595,7 @@ }); window.onload = function() { + fixTabHeight(); try { if(window.location.search && (window.location.search.indexOf('gwt.hosted') != -1 || window.location.search.indexOf('gwt.codesvr') != -1)) { var hostedParam = window.location.search; -- 2.39.5