Orientation fix
This commit is contained in:
@@ -124,8 +124,9 @@ gd.on('plotly_legendclick', function(ev) {
|
||||
|
||||
var btn = document.createElement('button');
|
||||
btn.type = 'button';
|
||||
// Sits just BELOW the layer dropdown (top-left) so the two never overlap.
|
||||
btn.style.cssText = 'position:fixed;top:52px;left:14px;z-index:1000;' +
|
||||
// Sits to the RIGHT of the layer dropdown (which occupies the top-left up
|
||||
// to ~290px) and left of the centred title, so it overlaps neither.
|
||||
btn.style.cssText = 'position:fixed;top:50px;left:330px;z-index:1000;' +
|
||||
'padding:7px 13px;font-size:13px;border-radius:7px;cursor:pointer;' +
|
||||
'border:1px solid #ff9d00;font-family:system-ui,-apple-system,sans-serif;';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user