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) { ...@@ -2300,13 +2300,18 @@ function gui_iemgui_label_show_drag_handle(cid, tag, state, x, y) {
gobj.appendChild(rect); gobj.appendChild(rect);
patchwin[cid].window.canvas_events.clickable_resize_handle = true; patchwin[cid].window.canvas_events.clickable_resize_handle = true;
} else { } else {
rect = get_item(cid, "clickable_resize_handle"); if (gobj) {
// Need to check for null here... rect = gobj.getElementsByClassName((cid === tag) ?
if (rect) { "gop_drag_handle" : "label_drag_handle")[0];
rect.parentNode.removeChild(rect); //rect = get_item(cid, "clickable_resize_handle");
patchwin[cid].window.canvas_events.clickable_resize_handle = false; // Need to check for null here...
} else { if (rect) {
post("couldnt delete the iemgui drag handle!"); rect.parentNode.removeChild(rect);
patchwin[cid].window.canvas_events.clickable_resize_handle =
false;
} else {
post("couldnt delete the iemgui drag handle!");
}
} }
} }
} }
......
Markdown is supported
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