mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-07 02:15:34 +00:00
ui: get rid of Inf
It's not worth the special cases. Use a large value where needed (layout.List, text.Editor...) instead. Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
@@ -153,9 +153,6 @@ func (c *Config) Px(v ui.Value) int {
|
||||
default:
|
||||
panic("unknown unit")
|
||||
}
|
||||
if math.IsInf(float64(r), +1) {
|
||||
return ui.Inf
|
||||
}
|
||||
return int(math.Round(float64(r)))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user