Skip to content

Commit

Permalink
fix bug that TextOverflow cannot be disabled, #301
Browse files Browse the repository at this point in the history
  • Loading branch information
jingwood committed Mar 3, 2020
1 parent ce71b33 commit e0c563d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ReoGrid/Views/CellsViewport.cs
Original file line number Diff line number Diff line change
Expand Up @@ -854,9 +854,9 @@ internal void DrawCellText(CellDrawingContext dc, Cell cell)

Rectangle clipRect = new Rectangle(this.ViewLeft * this.scaleFactor, cell.Top * this.scaleFactor, this.Width, cellScaledHeight);

bool needWidthClip = (cell.IsMergedCell || cell.InnerStyle.TextWrapMode == TextWrapMode.WordBreak);
bool needWidthClip = cell.IsMergedCell || cell.InnerStyle.TextWrapMode == TextWrapMode.WordBreak || dc.AllowCellClip;

if (!needWidthClip && dc.AllowCellClip)
if (!needWidthClip)
{
if (cell.InternalCol < this.sheet.cols.Count - 1)
{
Expand Down

0 comments on commit e0c563d

Please sign in to comment.