mirror of
https://github.com/piskelapp/piskel.git
synced 2023-08-10 21:12:52 +03:00
Merge pull request #397 from GMartigny/issue_#348
Issue #348 : colorpicker showing on top of tooltip
This commit is contained in:
commit
539d7c7870
@ -110,7 +110,8 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
ns.PaletteController.prototype.setTitleOnPicker_ = function (title, colorPicker) {
|
ns.PaletteController.prototype.setTitleOnPicker_ = function (title, colorPicker) {
|
||||||
var spectrumInputSelector = '.sp-replacer';
|
var parent = colorPicker.parent();
|
||||||
colorPicker.next(spectrumInputSelector).attr('title', title);
|
title = parent.data('initial-title') + '<br/>' + title;
|
||||||
|
parent.attr('data-original-title', title);
|
||||||
};
|
};
|
||||||
})();
|
})();
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
<div class="palette-wrapper">
|
<div class="palette-wrapper">
|
||||||
<div
|
<div
|
||||||
class="tool-icon tool-color-picker"
|
class="tool-icon tool-color-picker"
|
||||||
title="Primary - left mouse button"
|
data-initial-title="Primary - left mouse button"
|
||||||
rel="tooltip"
|
rel="tooltip"
|
||||||
data-placement="right"
|
data-placement="right"
|
||||||
>
|
>
|
||||||
@ -21,7 +21,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
class="tool-icon tool-color-picker"
|
class="tool-icon tool-color-picker"
|
||||||
title="Secondary - right mouse button"
|
data-initial-title="Secondary - right mouse button"
|
||||||
rel="tooltip"
|
rel="tooltip"
|
||||||
data-placement="right"
|
data-placement="right"
|
||||||
>
|
>
|
||||||
|
Loading…
Reference in New Issue
Block a user