mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-03 00:16:15 +00:00
layout: invert baseline to measure positive distance from bottom
With an inverted baseline, the zero value results in the widget baseline aligned to its bottom. Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
+1
-1
@@ -165,7 +165,7 @@ func linesDimens(lines []text.Line) layout.Dimensions {
|
||||
X: w,
|
||||
Y: h,
|
||||
},
|
||||
Baseline: baseline,
|
||||
Baseline: h - baseline,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user