Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Wynn
purr-data
Commits
b0fe38c5
Commit
b0fe38c5
authored
Dec 22, 2015
by
Jonathan Wilkes
Browse files
fix bug with showing/hiding iemgui label handles
parent
c72e94dc
Changes
1
Hide whitespace changes
Inline
Side-by-side
pd/nw/pdgui.js
View file @
b0fe38c5
...
@@ -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!
"
);
}
}
}
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment