Fix for total tabs
This commit is contained in:
		@@ -535,7 +535,7 @@ public class NetworkNodeGrid extends NetworkNode implements IGrid {
 | 
			
		||||
 | 
			
		||||
    @Override
 | 
			
		||||
    public int getTotalTabPages() {
 | 
			
		||||
        return (int) Math.floor((float) tabs.size() / (float) IGrid.TABS_PER_PAGE);
 | 
			
		||||
        return (int) Math.floor((float) Math.max(0, tabs.size() - 1) / (float) IGrid.TABS_PER_PAGE);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    @Override
 | 
			
		||||
 
 | 
			
		||||
@@ -137,7 +137,7 @@ public class WirelessGrid implements IGrid {
 | 
			
		||||
 | 
			
		||||
    @Override
 | 
			
		||||
    public int getTotalTabPages() {
 | 
			
		||||
        return (int) Math.floor((float) tabs.size() / (float) IGrid.TABS_PER_PAGE);
 | 
			
		||||
        return (int) Math.floor((float) Math.max(0, tabs.size() - 1) / (float) IGrid.TABS_PER_PAGE);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    @Override
 | 
			
		||||
 
 | 
			
		||||
@@ -243,7 +243,7 @@ public class PortableGrid implements IGrid, IPortableGrid {
 | 
			
		||||
 | 
			
		||||
    @Override
 | 
			
		||||
    public int getTotalTabPages() {
 | 
			
		||||
        return (int) Math.floor((float) tabs.size() / (float) IGrid.TABS_PER_PAGE);
 | 
			
		||||
        return (int) Math.floor((float) Math.max(0, tabs.size() - 1) / (float) IGrid.TABS_PER_PAGE);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    @Override
 | 
			
		||||
 
 | 
			
		||||
@@ -314,7 +314,7 @@ public class TilePortableGrid extends TileBase implements IGrid, IPortableGrid,
 | 
			
		||||
 | 
			
		||||
    @Override
 | 
			
		||||
    public int getTotalTabPages() {
 | 
			
		||||
        return (int) Math.floor((float) tabs.size() / (float) IGrid.TABS_PER_PAGE);
 | 
			
		||||
        return (int) Math.floor((float) Math.max(0, tabs.size() - 1) / (float) IGrid.TABS_PER_PAGE);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    @Override
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user