Skip to content

Bug in chrome and javafx #4

@Fazerty

Description

@Fazerty

The trigger('updateHeight') doesn't work in my web app when I'm using it in chrome or the javafx browser but is ok in firefox. (It works with a simple example.)
I could solve it by changing the setHeightAndOverflow function by setting again the lineheight (because it was NaN).

function setHeightAndOverflow(){
                    lineHeight = parseInt($textarea.css('line-height'), 10) || parseInt($textarea.css('font-size'), 10);
                    var cloneHeight = $clone.height();
                    var overflow = 'hidden';
                    var height = hasBoxModel ? cloneHeight + lineHeight + heightCompensation : cloneHeight + lineHeight;
                    if (height > maxheight) {
                        height = maxheight;
                        overflow = 'auto';
                    } else if (height < minheight) {
                        height = minheight;
                    }
                    if ($textarea.height() !== height) {
                        $textarea.css({'overflow': overflow, 'height': height + 'px'});
                    }
                }

Regards

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions