display/visibility do return the value of the style, not a hash table with them
This commit is contained in:
@@ -50,13 +50,13 @@
|
||||
(when (not (null? d))
|
||||
(let ((d* (string->symbol (format "~a" (car d)))))
|
||||
(webview-set-style! wv element-id (list 'display d*))))
|
||||
(webview-get-style wv element-id 'display))
|
||||
(hash-ref (webview-get-style wv element-id 'display) 'display))
|
||||
|
||||
(define/public (visibility . v)
|
||||
(when (not (null? v))
|
||||
(let ((v* (string->symbol (format "~a" (car v)))))
|
||||
(webview-set-style! wv element-id (list 'visibility v*))))
|
||||
(webview-get-style wv element-id 'visibility))
|
||||
(hash-ref (webview-get-style wv element-id 'visibility) 'visibility))
|
||||
|
||||
(define/public (set-style! styles)
|
||||
(webview-set-style! wv element-id styles))
|
||||
|
||||
Reference in New Issue
Block a user