Giter Site home page Giter Site logo

Comments (7)

grund3g avatar grund3g commented on May 18, 2024 3

@dstekol @AMBudnik I had the same issue with multiple tables on one page in IE11 and fixed it by adapting hideEditableElement and showEditableElement:

Handsontable.editors.TextEditor.prototype.hideEditableElement = function() {
    this.textareaParentStyle.visibility = 'hidden';
    this.textareaParentStyle.position = 'fixed';
    this.textareaParentStyle.top = '0px';
    this.textareaParentStyle.left = '0px';

    //this.textareaParentStyle.top = '-9999px'; // default
    //this.textareaParentStyle.left = '-9999px'; // default
    this.textareaParentStyle.zIndex = '-1'; // default
};

Handsontable.editors.TextEditor.prototype.showEditableElement = function() {
    this.textareaParentStyle.position = 'absolute';
    this.textareaParentStyle.visibility = 'visible';

    this.textareaParentStyle.zIndex = this.holderZIndex >= 0 ? this.holderZIndex : ''; // default
};

from handsontable.

AMBudnik avatar AMBudnik commented on May 18, 2024 2

Thank you for your suggestion @grund3g

from handsontable.

nobisheikh avatar nobisheikh commented on May 18, 2024

I think I found what the issue is. IE 9 scrolls to where the textarea is whenever focus or select is called on the text area. Is there a way to work around this issue ?

from handsontable.

warpech avatar warpech commented on May 18, 2024

Hi nobisheikh, thanks for your interest! This should be fixed now. Indeed the cause was that IE scrolled to the invisible textarea, so I made sure that that textarea is always in the corner of the viewport.

from handsontable.

dstekol avatar dstekol commented on May 18, 2024

I have found that there is still a jumping issue with the textarea when there are multiple tables on the page. My fix is to recode the textarea to be invisible but on screen (visibility:hidden; position:fixed; top: 0px; left: 0px;) when it is not needed (inside the hideEditableElement function), and then change to "position:absolute; visibility:visible;" when it is needed (in the showEditableElement function). This stops the browser from jumping to it because it is technically always floating on the top left corner of the screen, you just can't see it, and this seems a cleaner solution than making the position -9999px, which is what it is being set to in the existing code.

from handsontable.

AMBudnik avatar AMBudnik commented on May 18, 2024

Hi @dstekol

this topic is really old. Can I ask you to create a new issue with a demo or/and a video where this can be seen?

from handsontable.

github-actions avatar github-actions commented on May 18, 2024

Launch the local version of documentation by running:

npm run docs:review 67f796e288da075f113e2f99487c3aa70a2ef8f9

from handsontable.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.