Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
purr-data
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
268
Issues
268
List
Boards
Labels
Service Desk
Milestones
Merge Requests
16
Merge Requests
16
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jonathan Wilkes
purr-data
Commits
70ebbb7e
Commit
70ebbb7e
authored
Nov 22, 2020
by
Jonathan Wilkes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
position [cnv] drag anchor inside the bottom-right corner of the rectangle
parent
3f242c54
Pipeline
#3026
failed with stage
in 244 minutes and 11 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
2 deletions
+13
-2
pd/src/g_all_guis.c
pd/src/g_all_guis.c
+13
-2
No files found.
pd/src/g_all_guis.c
View file @
70ebbb7e
...
...
@@ -897,9 +897,20 @@ void scalehandle_draw_select2(t_iemgui *x)
the one for the label. Special case for [cnv] which for some reason
allows a smaller selection area than its painted rectangle. */
if
(
c
==
my_canvas_class
)
{
/* We're drawing the anchor rectangle by abusing the <line> svg elem
with a width equal to SCALEHANDLE_WIDTH.
This simplifies the CSS, but unfortunately makes the positioning
a little wonky:
For example-- a vertical line from sy to sy+10 with a width of 10
will straddle the horizontal point sx. So to get the leftmost part
of our rect at sx, we multiply the width by 0.5 and add that to sx.
*/
scalehandle_draw_select
(
x
->
x_handle
,
(
int
)(
sx
+
SCALEHANDLE_WIDTH
*
1
.
5
)
+
1
,
sy
+
SCALEHANDLE_HEIGHT
);
(
int
)(
sx
+
SCALEHANDLE_WIDTH
*
0
.
5
),
sy
);
}
if
(
x
->
x_lab
!=
s_empty
)
scalehandle_draw_select
(
x
->
x_lhandle
,
x
->
x_ldx
+
5
,
x
->
x_ldy
+
10
);
}
...
...
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