Avoid negative CSS widths

This commit is contained in:
df 2021-02-23 00:31:42 +00:00
parent f824b0c25c
commit c372c806e6
1 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,7 @@ puts "<div style=\"position: relative; top: -10px\">"
proc div {type left right} {
set width $($right - $left)
if {width < 0} {
if {$width < 0} {
# negative values are invalid for CSS width
set width 0
}