clui: fix Clipper() function

We're using the wrong control to calculate the clipped area, it should
be the clipped control not its clipped parent.

Signed-off-by: Leandro Dorileo <leandro.maciel.dorileo@intel.com>
This commit is contained in:
Leandro Dorileo
2018-09-25 15:33:15 -07:00
committed by Mark Horn
parent b4172c5621
commit fd8ce0d2d0
+1 -1
View File
@@ -546,7 +546,7 @@ func (c *BaseControl) Clipper() (int, int, int, int) {
return c.clipper.x, c.clipper.y, c.clipper.w, c.clipper.h
}
return CalcClipper(clipped)
return CalcClipper(c)
}
func (c *BaseControl) setClipper() {