shithub: mycel

Download patch

ref: 21f3bf505510debd8a7921a26fdbd47ae79d28e1
parent: 52fda39dd18e9e6f1397c477980cf20fcf8e172f
author: Philip Silva <philip.silva@protonmail.com>
date: Thu Feb 11 17:24:32 EST 2021

comments

--- a/browser/browser.go
+++ b/browser/browser.go
@@ -273,9 +273,13 @@
 	if el == nil {
 		return
 	}
-	/*if self.Draw == duit.DirtyKid {
-		force = true
-	}*/
+	// It would be possible to avoid flickers under certain circumstances
+	// of overlapping elements but the load for this is high:
+	// if self.Draw == duit.DirtyKid {
+	//	force = true
+	// }
+	//
+	// Make boxes use full size for image backgrounds
 	box, ok := el.UI.(*duit.Box)
 	if ok && box.Width > 0 && box.Height > 0 {
 		uiSize := image.Point{X: box.Width, Y: box.Height}
@@ -289,6 +293,7 @@
 	if el == nil {
 		return
 	}
+	// Make boxes use full size for image backgrounds
 	box, ok := el.UI.(*duit.Box)
 	if ok && box.Width > 0 && box.Height > 0 {
 		//dui.debugLayout(self)