mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-09 03:52:19 +02:00
Properly resize tabs when files rename
This commit is contained in:
parent
560a7eb7a7
commit
ee27f6fd02
1 changed files with 7 additions and 5 deletions
|
@ -13200,13 +13200,15 @@ namespace IDE
|
|||
if (Path.Equals(sourceViewPanel.mFilePath, oldPath))
|
||||
{
|
||||
var sourceViewTab = (IDEApp.SourceViewTabButton)tab;
|
||||
|
||||
//TODO: We might have to resize the label here?
|
||||
//sourceViewPanel.mFilePath.Set(newPath);
|
||||
|
||||
sourceViewPanel.PathChanged(newPath);
|
||||
tab.Label = newFileName;
|
||||
tab.mWantWidth = sourceViewTab.GetWantWidth();
|
||||
//tab.mTabbedView.Resize();
|
||||
float newWidth = sourceViewTab.GetWantWidth();
|
||||
if (newWidth != tab.mWantWidth)
|
||||
{
|
||||
tab.mWantWidth = newWidth;
|
||||
tab.mTabbedView.mNeedResizeTabs = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue