forked from hummypkg/webif
Avoid negative CSS widths
This commit is contained in:
parent
f824b0c25c
commit
c372c806e6
|
@ -37,7 +37,7 @@ puts "<div style=\"position: relative; top: -10px\">"
|
||||||
|
|
||||||
proc div {type left right} {
|
proc div {type left right} {
|
||||||
set width $($right - $left)
|
set width $($right - $left)
|
||||||
if {width < 0} {
|
if {$width < 0} {
|
||||||
# negative values are invalid for CSS width
|
# negative values are invalid for CSS width
|
||||||
set width 0
|
set width 0
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue