Adjusting size of Bubble on open event

Adjusting size of Bubble on open event

wadeparallonwadeparallon Posts: 60Questions: 9Answers: 0

I several bubble editors in a row, but I have a few TinyMCE types that need to be larger than the others (too small to use), so I can't globally change the width like in this discussion: https://datatables.net/forums/discussion/comment/105384/#Comment_105384

So I came up with the following; adding a class that overwrote the width:

    _editor.on( 'open', function ( e, mode, action ) {
        if (_editor.displayed().includes("projectNotes") || _editor.displayed().includes("executiveStatusSummary")) {
            $("div.DTE_Bubble div.DTE_Bubble_Liner").addClass( 'wysiwygWrap' );
        }
    } );

However, it weirdly offsets the bubble now:

Expected to be centered like the other fields:

Answers

  • wadeparallonwadeparallon Posts: 60Questions: 9Answers: 0
    edited March 2022

    Never mind, I forgot the margin-left as well. Needs to be half the width.

    As usual, gotta ask the question to see the answer sometimes.

Sign In or Register to comment.