Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/coder/coder
/ sanitizeDesktopDimension
Function
sanitizeDesktopDimension
codersdk/workspacesdk/display.go:178–183 ·
view source on GitHub ↗
(dim int)
Source
from the content-addressed store, hash-verified
176
}
177
178
func
sanitizeDesktopDimension(dim int) int {
179
if
dim <= 0 {
180
return
1
181
}
182
return
dim
183
}
Callers
2
NewDesktopGeometry
Function · 0.85
NewDesktopGeometryWithDeclared
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected