Fix color picker location in Trackster

This commit is contained in:
Aysam Guerler
2013-09-30 14:36:09 -04:00
parent 5b1c997998
commit d8aefba2b2
2 changed files with 8 additions and 3 deletions
+6
View File
@@ -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
+2 -3
View File
@@ -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.