Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit fde66f6

Browse filesBrowse files
committed
unified hover: do not clip vertically
1 parent 7b109eb commit fde66f6
Copy full SHA for fde66f6

File tree

Expand file treeCollapse file tree

1 file changed

+7
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+7
-2
lines changed

‎src/components/legend/draw.js

Copy file name to clipboardExpand all lines: src/components/legend/draw.js
+7-2Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,9 +161,14 @@ module.exports = function draw(gd, opts) {
161161

162162
if(!opts._main || opts._height <= opts._maxHeight || gd._context.staticPlot) {
163163
// if scrollbar should not be shown.
164+
var height = opts._effHeight;
165+
166+
// if not the main legend, let it be its full size
167+
if(!opts.main) height = opts._height;
168+
164169
bg.attr({
165170
width: opts._width - bw,
166-
height: opts._effHeight - bw,
171+
height: height - bw,
167172
x: bw / 2,
168173
y: bw / 2
169174
});
@@ -172,7 +177,7 @@ module.exports = function draw(gd, opts) {
172177

173178
clipPath.select('rect').attr({
174179
width: opts._width - 2 * bw,
175-
height: opts._effHeight - 2 * bw,
180+
height: height - 2 * bw,
176181
x: bw,
177182
y: bw
178183
});

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.