mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-10-28 02:58:18 +08:00
Fix color picker location in Trackster
This commit is contained in:
@@ -103,6 +103,12 @@ var GalaxyModal = Backbone.View.extend(
|
||||
disable: function(name) {
|
||||
$(this.el).find('#' + String(name).toLowerCase()).prop('disabled', true);
|
||||
},
|
||||
|
||||
// returns scroll top for body element
|
||||
scrollTop: function()
|
||||
{
|
||||
return $(this.el).find('.modal-body').scrollTop();
|
||||
},
|
||||
|
||||
/*
|
||||
HTML TEMPLATES
|
||||
|
||||
@@ -2020,11 +2020,10 @@ extend(DrawableConfig.prototype, {
|
||||
var tip = $(this).siblings(".tooltip").addClass( "in" );
|
||||
tip.css( {
|
||||
// left: $(this).position().left + ( $(input).width() / 2 ) - 60,
|
||||
// top: $(this).position().top + $(this.height)
|
||||
// top: $(this).position().top + $(this.height)
|
||||
left: $(this).position().left + $(this).width() + 5,
|
||||
top: $(this).position().top - ( $(tip).height() / 2 ) + ( $(this).height() / 2 )
|
||||
top: $(this).position().top + Galaxy.modal.scrollTop() - ( $(tip).height() / 2 ) + ( $(this).height() / 2 )
|
||||
} ).show();
|
||||
|
||||
// Click management:
|
||||
|
||||
// Keep showing tip if clicking in tip.
|
||||
|
||||
Reference in New Issue
Block a user