mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-29 21:05:59 +02:00
Should work for all tabs now.
This commit is contained in:
parent
318cb6524d
commit
0e0a989e8e
3 changed files with 5 additions and 5 deletions
|
@ -472,7 +472,7 @@ namespace Beefy.widgets
|
|||
return activeTab;
|
||||
}
|
||||
|
||||
public virtual TabButton AddTab(String label, float width, Widget content, bool ownsContent)
|
||||
public virtual TabButton AddTab(String label, float width, Widget content, bool ownsContent, int insertIdx)
|
||||
{
|
||||
TabButton aTabButton = CreateTabButton();
|
||||
aTabButton.mTabbedView = this;
|
||||
|
@ -481,7 +481,7 @@ namespace Beefy.widgets
|
|||
aTabButton.mWantWidth = width;
|
||||
aTabButton.mHeight = mTabHeight;
|
||||
aTabButton.mContent = content;
|
||||
AddTab(aTabButton, 0);
|
||||
AddTab(aTabButton, insertIdx);
|
||||
return aTabButton;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue