B2016-047: Use ‘DSS_ChklstEditSize’ to docstyle for setting of edit window size

This commit is contained in:
Kathy Ruffing 2016-03-14 13:01:03 +00:00
parent 41e03c8295
commit 4ddac642b0

View File

@ -2457,6 +2457,7 @@ namespace Volian.Controls.Library
bool specialTplSupport =((MyItemInfo.MyDocStyle.StructureStyle.Style & E_DocStructStyle.DSS_PageListSpBckgrnd) == E_DocStructStyle.DSS_PageListSpBckgrnd) ||
(MyItemInfo.MyDocStyle.LandscapePageList && MyItemInfo.MyDocStyle.ComponentList);
bool wecTplSupport = ((MyItemInfo.MyDocStyle.StructureStyle.Style & E_DocStructStyle.DSS_ChklstEditSize) == E_DocStructStyle.DSS_ChklstEditSize);
if (MyItemInfo.FormatStepData.ReadOnly)
{
Graphics g = CreateGraphics();
@ -2473,7 +2474,7 @@ namespace Volian.Controls.Library
{
ItemWidth = MyStepPanel.ToDisplay(MyStepSectionLayoutData.WidSTableEdit, 0);
}
else if (MyItemInfo.MyParent.FormatStepData.Type == "TitleWithTextBelow" && specialTplSupport)
else if (wecTplSupport || (MyItemInfo.MyParent.FormatStepData.Type == "TitleWithTextBelow" && specialTplSupport))
{
ItemWidth = MyParentEditItem.ItemWidth - RTBItem.RTBMargin;
}