mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-10-05 00:02:24 +00:00
fix: set min size of components to 1
This commit is contained in:
@@ -297,8 +297,8 @@
|
||||
newSize.width = Math.min(newSize.width, maxWidth * xPerPx - gapX * 2)
|
||||
|
||||
// Limit col & row
|
||||
shadow.w = Math.round((newSize.width + gapX * 2) / xPerPx)
|
||||
shadow.h = Math.round((newSize.height + gapY * 2) / yPerPx)
|
||||
shadow.w = Math.round(Math.max((newSize.width + gapX * 2) / xPerPx, 1))
|
||||
shadow.h = Math.round(Math.max((newSize.height + gapY * 2) / yPerPx, 1))
|
||||
|
||||
repaint(false, false)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user