Index: lams_central/web/includes/javascript/jquery-ui/ui/ui.tabs.scrollable.js =================================================================== RCS file: /usr/local/cvsroot/lams_central/web/includes/javascript/jquery-ui/ui/Attic/ui.tabs.scrollable.js,v diff -u -r1.1 -r1.2 --- lams_central/web/includes/javascript/jquery-ui/ui/ui.tabs.scrollable.js 1 Apr 2009 00:45:14 -0000 1.1 +++ lams_central/web/includes/javascript/jquery-ui/ui/ui.tabs.scrollable.js 2 Apr 2009 01:42:04 -0000 1.2 @@ -68,7 +68,7 @@ this.tabLabels = $(".ui-tabs-label"); this.imagesInTabs = $("img", this.list); this.$panels = $([]); - this.leftMostScroll = 15; + this.leftMostScroll = 25; } else{ this.list = this.element.is('div') ? this.element.children('ul:first, ol:first').eq(0) : this.element; @@ -122,7 +122,7 @@ this.$lis.addClass('ui-state-default ui-corner-top'); this.$panels.addClass('ui-tabs-panel ui-widget-content ui-corner-bottom'); - this.tabsHolder.animate( { scrollLeft: this.leftMostScroll}, this.scrollSpeed ) + //this.tabsHolder.animate( { scrollLeft: this.leftMostScroll}, this.scrollSpeed ) } else{ // attach necessary classes for styling @@ -372,9 +372,13 @@ this.scrollableWidth += this.imagesInTabs[i].width; } - this.scrollableWidth += o.margins + this.leftMostScroll; + this.scrollableWidth += o.margins; $(".ui-tabs-wrapped").css("width", this.scrollableWidth + "px"); + + if(init){ + this.tabsHolder.animate( { scrollLeft: this.leftMostScroll }, this.scrollSpeed ) + } } // disable click if event is configured to something else @@ -672,7 +676,7 @@ spinner: 'Loading…', tabTemplate: '