B2022-028: Insert image into grid & print

This commit is contained in:
2022-03-23 13:33:10 +00:00
parent f2357c754f
commit f684f7e65c
2 changed files with 14 additions and 10 deletions

View File

@@ -1237,6 +1237,9 @@ namespace Volian.Controls.Library
void _tableCellEditor_HeightChanged(object sender, EventArgs args)
{
// B2022-028: images in table cells - don't come into this code if it is an image in a table cell:
if (_tableCellEditor is StepRTB && (_tableCellEditor as StepRTB).ImageWidth > 0) return;
if (_tableCellEditor._initializingEdit || !_tableCellEditor.Visible) return;
int curHeight = GetCellHeight(Row, Col);//(Rows[Row].Height == -1) ? Rows.DefaultSize : Rows[Row].Height;
CellRange cr = GetMergedRange(Row, Col);
@@ -1268,10 +1271,6 @@ namespace Volian.Controls.Library
AdjustGridControlSize();
}
}
if (_tableCellEditor is StepRTB && (_tableCellEditor as StepRTB).ImageWidth > 0)
{
Width = Cols[0].Width = (_tableCellEditor as StepRTB).ImageWidth;
}
}
void VlnFlexGrid_KeyUp(object sender, KeyEventArgs e)
{
@@ -1395,7 +1394,7 @@ namespace Volian.Controls.Library
case TextAlignEnum.GeneralCenter:
case TextAlignEnum.LeftCenter:
case TextAlignEnum.RightCenter:
hAdjust = hDiff / 2;
hAdjust = hDiff / 2; //0; // hDiff / 2;
break;
default:
break;