summaryrefslogtreecommitdiff
path: root/web/web_dom.c
diff options
context:
space:
mode:
Diffstat (limited to 'web/web_dom.c')
-rw-r--r--web/web_dom.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/web/web_dom.c b/web/web_dom.c
index 162684a..54a6c8d 100644
--- a/web/web_dom.c
+++ b/web/web_dom.c
@@ -144,6 +144,11 @@ inline void dom_set_uniq_class(char *sel, char *class, char *sel_set)
EM_ASM({elemSetUniqClass($0, $1, $2)}, sel, class, sel_set);
}
+inline void dom_set_style_property_int(char *prop, int val)
+{
+ EM_ASM({rootSetStylePropertyInt($0, $1)}, prop, val);
+}
+
inline void dom_scroll_to_bottom(char *sel)
{
EM_ASM({elemScrollToBottom($0)}, sel);