mirror of
https://github.com/rkd77/elinks.git
synced 2024-09-27 02:56:18 -04:00
[mujs] element.clientLeft and element.clientTop
They always return 0.
This commit is contained in:
parent
9e743f0e80
commit
81c692e6b8
@ -269,6 +269,24 @@ mjs_element_get_property_className(js_State *J)
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
mjs_element_get_property_clientLeft(js_State *J)
|
||||
{
|
||||
#ifdef ECMASCRIPT_DEBUG
|
||||
fprintf(stderr, "%s:%s\n", __FILE__, __FUNCTION__);
|
||||
#endif
|
||||
js_pushnumber(J, 0);
|
||||
}
|
||||
|
||||
static void
|
||||
mjs_element_get_property_clientTop(js_State *J)
|
||||
{
|
||||
#ifdef ECMASCRIPT_DEBUG
|
||||
fprintf(stderr, "%s:%s\n", __FILE__, __FUNCTION__);
|
||||
#endif
|
||||
js_pushnumber(J, 0);
|
||||
}
|
||||
|
||||
static void
|
||||
mjs_element_get_property_dir(js_State *J)
|
||||
{
|
||||
@ -2680,6 +2698,8 @@ mjs_push_element(js_State *J, void *node)
|
||||
addproperty(J, "childElementCount", mjs_element_get_property_childElementCount, NULL);
|
||||
addproperty(J, "childNodes", mjs_element_get_property_childNodes, NULL);
|
||||
addproperty(J, "className", mjs_element_get_property_className, mjs_element_set_property_className);
|
||||
addproperty(J, "clientLeft", mjs_element_get_property_clientLeft, NULL);
|
||||
addproperty(J, "clientTop", mjs_element_get_property_clientTop, NULL);
|
||||
addproperty(J, "dir", mjs_element_get_property_dir, mjs_element_set_property_dir);
|
||||
addproperty(J, "firstChild", mjs_element_get_property_firstChild, NULL);
|
||||
addproperty(J, "firstElementChild", mjs_element_get_property_firstElementChild, NULL);
|
||||
|
Loading…
Reference in New Issue
Block a user