Giter Club home page Giter Club logo

Comments (6)

dagraf avatar dagraf commented on September 26, 2024

Note: This is not an urgent bug. Mainly because the user can manually enlarge the "Create new annotations" window. But anyhow it should be fixed some time...

from annotation-tool.

JulianKniephoff avatar JulianKniephoff commented on September 26, 2024

The sad truth is also that this isn't an easy thing to fix. You would think that it is, but ti's complicated by the convoluted structure of the "structured annotation creation component," and even the naive and hacky ways of working around that are squashed by us using an ancient version of the "UI framework" (talking about Bootstrap) we are using. 😞

from annotation-tool.

dagraf avatar dagraf commented on September 26, 2024

Truly sad but not that important. Here some ideas for workaround solutions to gain more space for the box containing the categories with its labels:
a) The default hight for free text annotations could be made a bit smaller.
b) In the layout preset "Standard" the window "Create new annotations" could be made higher than the window "Annotation list". For example: "Create new annotations" = 3/5 of max. hight; "Annotation list" = 2/5 of max. hight

What do you think of these possible workarounds?

from annotation-tool.

ChristianOellers avatar ChristianOellers commented on September 26, 2024

Maybe a CSS cheat can help with position:fixed; or other more modern CSS approaches (?):

CSS cheat

Challenges would then be:

  • Does it work in all browsers?
  • Position needs to be calculated from the origin element (hardcoded for screenshot)
  • On resizing the window, it should be either repositioned -or- closed

from annotation-tool.

JulianKniephoff avatar JulianKniephoff commented on September 26, 2024

I don't want to sound mean or anything, but I would really hesitate to add a lot of complexity to fix this. If there is a simple CSS one-liner, sure, but I don't think there is. Adding JavaScript code to dynamically reposition this window, etc. when this functionality already exists in newer versions of Bootstrap seems crazy to me. We should update our dependencies, not haphazardly duplicate their functionality. πŸ€” It's exactly decisions like this that brought about the current state of the code base; choosing quick fixes over long term maintainability.

As for the workarounds suggested by David (sorry, somehow I'm only seeing this now): I have nothing against that. It's easy, and it's also not like I put a lot of thought into that Standard layout. x)

from annotation-tool.

dagraf avatar dagraf commented on September 26, 2024

Bug still exists in merged version.

from annotation-tool.

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.