Add logic to make entire RTBItem visible when it is resized.

Added event handler for MyStepRTB.Resize
This commit is contained in:
Rich 2012-03-16 09:20:20 +00:00
parent 41f5b634fc
commit b36187adcb
2 changed files with 3 additions and 6 deletions

View File

@ -342,9 +342,6 @@ namespace Volian.Controls.Library
// _Loading = false; // _Loading = false;
// //// TIMING: DisplayItem.TimeIt("CSLARTB Controls Add"); // //// TIMING: DisplayItem.TimeIt("CSLARTB Controls Add");
//} //}
private void SetupHeader() private void SetupHeader()
{ {
SetupHeader(MyItemInfo); SetupHeader(MyItemInfo);
@ -354,9 +351,9 @@ namespace Volian.Controls.Library
} }
void _MyStepRTB_Resize(object sender, EventArgs e) void _MyStepRTB_Resize(object sender, EventArgs e)
{ {
// Console.WriteLine("Left {0} Width {1}", Left, Width); if (MyStepPanel != null && this == MyStepPanel.SelectedEditItem)
MyStepPanel.ScrollControlIntoView(this);
} }
private Label lblHeader = null; private Label lblHeader = null;
private Label lblFooter = null; private Label lblFooter = null;
private void SetupHeaderFooter(ref Label lbl, string name, MetaTag mTag) private void SetupHeaderFooter(ref Label lbl, string name, MetaTag mTag)

Binary file not shown.