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
Rishabh Gupta
purr-data
Commits
f8e34469
Commit
f8e34469
authored
Mar 06, 2017
by
Jonathan Wilkes
Browse files
fix #276: gatom and dropdown should be resizable by click-draggin
parent
05b995f9
Changes
1
Hide whitespace changes
Inline
Side-by-side
pd/src/g_editor.c
View file @
f8e34469
...
...
@@ -3352,6 +3352,7 @@ void canvas_doclick(t_canvas *x, int xpos, int ypos, int which,
}
else if (!sys_k12_mode && ob && !x->gl_editor->e_textedfor &&
(ob->te_pd->c_wb == &text_widgetbehavior ||
ob->te_type == T_ATOM ||
ob->ob_pd == canvas_class) &&
xpos >= x2-4 && ypos < y2-4 && ypos > y1+4)
{
...
...
@@ -5217,9 +5218,10 @@ void canvas_motion(t_canvas *x, t_floatarg xpos, t_floatarg ypos,
{
int wantwidth = xpos - x11;
t_object *ob = pd_checkobject(&y1->g_pd);
if
(
ob
&&
ob
->
te_pd
->
c_wb
==
&
text_widgetbehavior
||
(
ob
->
ob_pd
==
canvas_class
&&
!
((
t_canvas
*
)
ob
)
->
gl_isgraph
))
if (ob && (ob->te_pd->c_wb == &text_widgetbehavior ||
ob->te_type == T_ATOM ||
(ob->ob_pd == canvas_class &&
!((t_canvas *)ob)->gl_isgraph)))
{
wantwidth = wantwidth / sys_fontwidth(glist_getfont(x));
if (wantwidth < 1)
...
...
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