Giter Site home page Giter Site logo

MT crashes on long tooltip about maptool HOT 4 CLOSED

rptools avatar rptools commented on May 20, 2024
MT crashes on long tooltip

from maptool.

Comments (4)

Azhrei avatar Azhrei commented on May 20, 2024

How would you like this solved? If the value really is THAT big, should we truncate it at some point? Should the tooltip panel be as large as possible with scrollbars? (Can scrollbars even be interacted with in a tooltip? I doubt it, since I don't think our tooltips will accept focus.)

from maptool.

wolph42 avatar wolph42 commented on May 20, 2024

I think that any attempt to show it whole will cause the same crash as its simply too big. So to be save I would opt for truncating it after a certain length.
MT can handle pretty long strings, but e.g. 3000+ character makes it crash (just tried it). So 200 max?

from maptool.

Azhrei avatar Azhrei commented on May 20, 2024

MT is not displaying the tool tip, the JIDE framework is. I've overridden the code that determines what should be displayed for the tool tip on the Properties panel and limited the text to 100 characters plus an ellipsis. I tested it with multiple properties with lengths of at least 200 characters for the values and it looks to be working.

from maptool.

wolph42 avatar wolph42 commented on May 20, 2024

Awesome! Can't wait to test. Thnx

from maptool.

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.