B2022-028: Insert image into grid & print
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user