Commit b0fe38c5 authored by Jonathan Wilkes's avatar Jonathan Wilkes
Browse files

fix bug with showing/hiding iemgui label handles

parent c72e94dc
......@@ -2300,13 +2300,18 @@ function gui_iemgui_label_show_drag_handle(cid, tag, state, x, y) {
gobj.appendChild(rect);
patchwin[cid].window.canvas_events.clickable_resize_handle = true;
} else {
rect = get_item(cid, "clickable_resize_handle");
// Need to check for null here...
if (rect) {
rect.parentNode.removeChild(rect);
patchwin[cid].window.canvas_events.clickable_resize_handle = false;
} else {
post("couldnt delete the iemgui drag handle!");
if (gobj) {
rect = gobj.getElementsByClassName((cid === tag) ?
"gop_drag_handle" : "label_drag_handle")[0];
//rect = get_item(cid, "clickable_resize_handle");
// Need to check for null here...
if (rect) {
rect.parentNode.removeChild(rect);
patchwin[cid].window.canvas_events.clickable_resize_handle =
false;
} else {
post("couldnt delete the iemgui drag handle!");
}
}
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment