mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-09 03:52:19 +02:00
Fixed drawing issue with long docs
This commit is contained in:
parent
f9c0f2a311
commit
b1af9de159
1 changed files with 29 additions and 2 deletions
|
@ -521,7 +521,7 @@ namespace IDE.ui
|
||||||
|
|
||||||
mDocWidth = docWidth;
|
mDocWidth = docWidth;
|
||||||
mDocHeight = docHeight;
|
mDocHeight = docHeight;
|
||||||
mRightBoxAdjust = docWidth;
|
mRightBoxAdjust = docWidth + GS!(16);
|
||||||
int32 windowWidth = (int32)mMaxWidth;
|
int32 windowWidth = (int32)mMaxWidth;
|
||||||
windowWidth += (.)mDocWidth;
|
windowWidth += (.)mDocWidth;
|
||||||
windowWidth += GS!(32);
|
windowWidth += GS!(32);
|
||||||
|
@ -546,6 +546,22 @@ namespace IDE.ui
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*public override void Resize(float x, float y, float width, float height)
|
||||||
|
{
|
||||||
|
if (mWantHeight != 0)
|
||||||
|
{
|
||||||
|
mScrollContentInsets.mBottom = mHeight - mWantHeight;
|
||||||
|
mScrollbarInsets.mBottom = mHeight - mWantHeight + 10;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
mScrollContentInsets.mBottom = 0;
|
||||||
|
mScrollbarInsets.mBottom = 10;
|
||||||
|
}
|
||||||
|
|
||||||
|
base.Resize(x, y, width, height);
|
||||||
|
}*/
|
||||||
|
|
||||||
public void UpdateEntry(EntryWidget entry, int showIdx)
|
public void UpdateEntry(EntryWidget entry, int showIdx)
|
||||||
{
|
{
|
||||||
if (showIdx == -1)
|
if (showIdx == -1)
|
||||||
|
@ -665,11 +681,15 @@ namespace IDE.ui
|
||||||
{
|
{
|
||||||
if (mDocWidth > 0)
|
if (mDocWidth > 0)
|
||||||
{
|
{
|
||||||
float drawX = mWidth - mDocWidth - GS!(6);
|
float drawX = mWidth - mDocWidth - GS!(22);
|
||||||
|
|
||||||
|
//float drawX = mRightBoxAdjust + GS!(42);
|
||||||
float drawY = GS!(4);
|
float drawY = GS!(4);
|
||||||
//float drawHeight = GS!(32);
|
//float drawHeight = GS!(32);
|
||||||
float drawHeight = mDocHeight;
|
float drawHeight = mDocHeight;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
using (g.PushColor(0x80000000))
|
using (g.PushColor(0x80000000))
|
||||||
g.DrawBox(DarkTheme.sDarkTheme.GetImage(.DropShadow), drawX + GS!(2), drawY + GS!(2), mRightBoxAdjust - GS!(2), drawHeight - GS!(2));
|
g.DrawBox(DarkTheme.sDarkTheme.GetImage(.DropShadow), drawX + GS!(2), drawY + GS!(2), mRightBoxAdjust - GS!(2), drawHeight - GS!(2));
|
||||||
|
|
||||||
|
@ -718,6 +738,13 @@ namespace IDE.ui
|
||||||
mScrollbarInsets.mTop = GS!(2);
|
mScrollbarInsets.mTop = GS!(2);
|
||||||
mScrollbarInsets.mBottom = GS!(10);
|
mScrollbarInsets.mBottom = GS!(10);
|
||||||
mScrollbarInsets.mRight = GS!(10) + mRightBoxAdjust;
|
mScrollbarInsets.mRight = GS!(10) + mRightBoxAdjust;
|
||||||
|
mScrollContentInsets.mBottom = 0;
|
||||||
|
|
||||||
|
if (mWantHeight != 0)
|
||||||
|
{
|
||||||
|
mScrollbarInsets.mBottom += mHeight - mWantHeight;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue