ref: 179860541723141da76c2760a466c76faf6edc94
parent: 16cd73398af29b1685483a5f15d1ea4cf8048e86
author: Philip Silva <[email protected]>
date: Wed Jul 21 16:39:05 EDT 2021
Don't render body height - needs to be interpreted differently
--- a/browser/browser.go
+++ b/browser/browser.go
@@ -349,9 +349,12 @@
var err error
var i *draw.Image
var m, p duit.Space
- zs := duit.Space{}
+ var zs duit.Space
+ var h int
w := n.Width()
- h := n.Height()
+ if n.Data() != "body" {
+ w = n.Height()
+ }
mw, err := n.CssPx("max-width")
if err != nil {
log.Printf("max-width: %v", err)
@@ -625,6 +628,7 @@
if el == nil {
log.Infof("inspect nil element")
} else {
+ log.Infof("%v:", el.n.Data())
log.Infof("inspect el %+v %+v %+v", el, el.n, el.UI)
}
}