1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 12:32:20 +02:00

Scale fixes

This commit is contained in:
Brian Fiete 2020-03-28 14:27:36 -07:00
parent 863009f329
commit d9a820f5a1
3 changed files with 25 additions and 3 deletions

View file

@ -28,6 +28,21 @@ namespace Beefy.theme.dark
{
}
public override void RehupScale(float oldScale, float newScale)
{
base.RehupScale(oldScale, newScale);
mMinWindowSize = GS!(100);
mMinWindowSize = GS!(32);
mDragMarginSize = GS!(64);
mDragWindowMarginSize = GS!(10);
mWindowMargin = 0;
mSplitterSize = GS!(6.0f);
mWindowSpacing = GS!(2.0f);
}
public override void RemovedFromParent(Widget previousParent, WidgetWindow window)
{
base.RemovedFromParent(previousParent, window);

View file

@ -200,7 +200,6 @@ namespace Beefy.theme.dark
if ((listView.mFont != null) && (mSelfHeight != 0))
mSelfHeight = listView.mFont.GetLineSpacing();
Utils.RoundScale(ref mBottomPadding, newScale / oldScale);
if (mChildItems != null)
{
for (var child in mChildItems)

View file

@ -1531,7 +1531,12 @@ namespace Beefy.widgets
CursorLineAndColumn = prevCursorLineAndCol;
}
public virtual void LinePullup(int textPos)
{
}
public virtual void DeleteChar()
{
if (HasSelection())
@ -1602,7 +1607,10 @@ namespace Beefy.widgets
char8 c = (char8)mData.mText[textPos].mChar;
if ((c == '\n') || (!c.IsWhiteSpace))
break;
{
LinePullup(textPos);
break;
}
}
mData.mUndoManager.Add(undoBatchStart.mBatchEnd);