mirror of
https://github.com/beefytech/Beef.git
synced 2025-07-04 23:36:00 +02:00
Fixed some scale issues
This commit is contained in:
parent
5515a1fd72
commit
5c68049bd1
3 changed files with 26 additions and 19 deletions
|
@ -485,7 +485,7 @@ namespace Beefy.theme.dark
|
|||
|
||||
//float offset = tabIdx - leftObscure;
|
||||
float widthSubtract = Math.Max(0, leftObscure);
|
||||
leftObscure -= tabButton.mWantWidth;
|
||||
leftObscure -= tabButton.mWantWidth;
|
||||
|
||||
float showWidth = 0;
|
||||
tabButton.mVisible = leftObscure < 1536.0f;
|
||||
|
@ -528,7 +528,7 @@ namespace Beefy.theme.dark
|
|||
}
|
||||
else
|
||||
{
|
||||
tabButton.mObscuredDir = pixelsOffscreen;
|
||||
tabButton.mObscuredDir = Math.Round(pixelsOffscreen);
|
||||
}
|
||||
}
|
||||
tabButton.mVisible = true;
|
||||
|
@ -599,7 +599,7 @@ namespace Beefy.theme.dark
|
|||
{
|
||||
var activeTab = (DarkTabButton)GetActiveTab();
|
||||
float pixelsLeft = maxAreaWidth - curX;
|
||||
if ((activeTab != null) && (pixelsLeft > mAllowRightSpace))
|
||||
if ((activeTab != null) && (pixelsLeft > mAllowRightSpace + 1))
|
||||
activeTab.mObscuredDir = -pixelsLeft;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue