mirror of
https://github.com/clearlinux/clr-installer.git
synced 2026-09-06 05:31:58 +00:00
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:
committed by
Mark Horn
parent
b4172c5621
commit
fd8ce0d2d0
+1
-1
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user