ColumnGeometry.visible_width should not return negative value
This commit is contained in:
1 parent
7859b7923e
commit
bbef942f86
1 file changed
+1
-1
@@ -13,7 +13,7 @@ namespace mbts.ui.controls {
|
||||
public double width { get { return column.ActualWidth; } }
|
||||
public double right { get { return unclipped_left + width; } }
|
||||
public bool is_partially_obscured { get { return unclipped_left < left; } }
|
||||
public double visible_width => width - left + unclipped_left;
|
||||
public double visible_width => Math.Max(0, width - left + unclipped_left);
|
||||
public override string ToString() {
|
||||
return "{3} {0:0.0},{1:0.0} w{2:0.0}".fmt(left, right, width, column.Header);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user