v0.2.4: fixed chrome inconsistency, standardized tab layouts and made them pretty

This commit is contained in:
Evan Debenham
2015-02-07 20:19:11 -05:00
parent 6b432a176e
commit 89d72e60d1
8 changed files with 60 additions and 25 deletions
@@ -132,15 +132,12 @@ public class WndBag extends WndTabbed {
for (Bag b : bags) {
if (b != null) {
BagTab tab = new BagTab( b );
int tab_width = (slotsWidth-((bags.length-1)*5))/bags.length;
tab.setSize( tab_width, tabHeight() );
//no point in showing tabs if there's just one bag
if (bags.length > 1) add( tab );
add( tab );
tab.select( b == bag );
}
}
layoutTabs();
}
public static WndBag lastBag( Listener listener, Mode mode, String title ) {