Skip to content
This repository was archived by the owner on Sep 4, 2019. It is now read-only.
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Actionbar Sample: Tab overflow button was not positioned correctly
  • Loading branch information
Jason Scott committed Jan 22, 2013
commit ad023b3beb706bf69090fe36dd5cdd42b8e4a94d
10 changes: 7 additions & 3 deletions kitchenSink/actionbar_sample.html
Original file line number Diff line number Diff line change
Expand Up @@ -142,20 +142,24 @@ <h1>Page 2</h1>
$(this).addClass("ui-btn-active");
//Clear the contents of the tab overflow button
//Add class to put the tab overflow icon in the correct position
$tabo.empty().addClass("noContent");
//Clear the active state from all tab buttons in action bar
$('[data-role="tab"], [data-role="tab-overflow"]').removeClass("active");
});

$(".inBar").bind("vclick", function() {
//Set the active state to the tab in the actionbar
$('#' + this.id.slice(0, 2)).addClass("active");
$tabo.addClass("noContent").empty();
overflowState = true;
});

$(".notInBar").bind("vclick", function() {
//Set the active state to the tab overflow button
$tabo.empty().addClass("active")
.html('<img src="img/generic_81_81_placeholder.png" alt=""><p>' + $(this).text() + '</p>').removeClass("noContent");
$tabo.empty()
.addClass("active")
.html('<img src="img/generic_81_81_placeholder.png" alt=""><p>' + $(this).text() + '</p>')
.removeClass("noContent");
overflowState = false;
});

$("[data-role='tab']").bind("vclick", function() {
Expand Down