Giter Site home page Giter Site logo

Comments (2)

johann-petrak avatar johann-petrak commented on August 22, 2024

Also, why do those buttons have to be on the right side of the field anyways? If they were on the left, one could always use them without scrolling even if the fields extend beyond the visible area for some reason ..

from gate-core.

ianroberts avatar ianroberts commented on August 22, 2024

I've made a small improvement to this now in bcd227c - the field still doesn't shrink when you narrow the window again, but at least now when you switch to a different PR in the application that resets the width to fit the current window size rather than being forever more stuck at the maximum width you ever reached. Similarly, when creating a new PR instance the table grows when you widen the "new PR" window, doesn't shrink again when you narrow it, but at least resets when you close and re-open the window again.

I'm not really sure what the correct behaviour here should be - we can make the fields always track the parent width but everything I've tried for that means that they initially start far too narrow in the "new PR" window, and also you don't get the scroll bar for very long values (e.g. a really long creole:// URI - the only way to view the part that has run off the right is to click in the field and then move the cursor to the right with the keyboard).

I can think of two sensible-ish alternatives to the current UI

  1. move the buttons into their own column in the table, to the left of the current text field column, then there's a trick you can use on an N-column JTable to make the left M columns fixed and the horizontal scroll bar only scroll the right N-M ones
  2. disable horizontal scrolling altogether but do the kind of thing that Excel does when you are editing particularly long formulas and have a "..." button to pop up a multi-line editor if the single line one is too cramped

from gate-core.

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.