jQuery UI Widgets Forums DataTable Renderer onclick/tooltip alignment to content margin

Tagged: 

This topic contains 3 replies, has 1 voice, and was last updated by  sreed 6 years, 8 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author

  • sreed
    Participant

    Hello,
    I am using a renderer for a column header, which displays the content fine using margins or padding for positioning.
    The problem is, when hovering over the content the tooltip or onclick event does not adjust to the margins I have set for the content.
    It seems that hovering or onclick events are outside the margins set for the content and located in a default area of upper left corner of the column header.

    Am I missing a simple html style that will align the tooltip and onclick to the margins set for the content?

    renderer: function (text, align, height) {
    return ““;
    }


    sreed
    Participant

    I removed the html img < > so you can see the style values:

    return “img title=’Create’ src=’doc_plus.png’ style=’vertical-align: top; width: 20px; margin: 14px; margin-top: 5px; margin-bottom: 3px;’ onClick=’alert(0)'”


    sreed
    Participant

    text: ‘Image’, dataField: ‘ID’, cellsrenderer: imagerenderer, sortable: false, filterable: false, menu: false, width: ’50’, align: ‘center’, cellsalign: ‘center’, renderer: function (text, align, height) {
    return “img title=’Create’ src=’doc_plus.png’ style=’vertical-align: top; width: 20px; margin: 14px; margin-top: 5px; margin-bottom: 3px;’ onClick=’alert(0)'”
    }


    sreed
    Participant

    one workaround was to increase the width: ’50’ of the column.

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.