MRI Capability
MyConfig for ItemInfo Fixed various problems with DisplayTabControl VEPROMS ribbon for DisplayTabPanel
This commit is contained in:
@@ -567,7 +567,7 @@ namespace Volian.Controls.Library
|
||||
vlnExp.Attachment = (item.MyContent.ContentPartCount == 0);
|
||||
break;
|
||||
case 2:
|
||||
CanExpand = TemporaryFormat.IsHigh(item); ;
|
||||
CanExpand = item.IsHigh && item.HasChildren; // TemporaryFormat.IsHigh(item); ;
|
||||
break;
|
||||
default:
|
||||
CanExpand = false;
|
||||
@@ -622,10 +622,15 @@ namespace Volian.Controls.Library
|
||||
{
|
||||
_DisplayRTB.Focus();
|
||||
_DisplayRTB.SelectAll();
|
||||
if (CanExpand) AutoExpand();
|
||||
int scrollValue = _Panel.VerticalScroll.Value + (Top - (_Panel.Height / 2));
|
||||
if(scrollValue > _Panel.VerticalScroll.Minimum && scrollValue <= _Panel.VerticalScroll.Maximum)
|
||||
_Panel.VerticalScroll.Value = scrollValue;
|
||||
if (CanExpand)
|
||||
AutoExpand(); // Expand the item if you can
|
||||
int scrollValue = _Panel.VerticalScroll.Value + (Top - (_Panel.Height / 2)); // calculate scroll center for the item
|
||||
if(scrollValue > _Panel.VerticalScroll.Minimum && scrollValue <= _Panel.VerticalScroll.Maximum) // If it isn't within range
|
||||
_Panel.VerticalScroll.Value = scrollValue; // Center the item
|
||||
}
|
||||
public void ItemShow()
|
||||
{
|
||||
_DisplayRTB.Focus();
|
||||
}
|
||||
private void vlnCSLARTB_Paint(object sender, PaintEventArgs e)
|
||||
{
|
||||
|
Reference in New Issue
Block a user