Git Product home page Git Product logo

Comments (7)

rkit avatar rkit commented on June 27, 2024

I don't even know… Maybe this help you:
select2/select2#3101 ( dropdownAutoWidth )

from react-select2-wrapper.

gazpachu avatar gazpachu commented on June 27, 2024

@rkit How does the dynamic width work? I've been trying different approaches to make it responsive, but the <input> always end up defining the final width of the whole thing.

from react-select2-wrapper.

rkit avatar rkit commented on June 27, 2024

@gazpachu I don't know. I never faced such a problem, sorry

from react-select2-wrapper.

gazpachu avatar gazpachu commented on June 27, 2024

@rkit This is what I mean (see below). It seems they get random widths:

screen shot 2016-11-25 at 17 15 20

from react-select2-wrapper.

rkit avatar rkit commented on June 27, 2024

@gazpachu I guess you should play with css, style={{width: x'}} and option dropdownAutoWidth

from react-select2-wrapper.

gazpachu avatar gazpachu commented on June 27, 2024

@rkit setting the dropdownAutoWidth option to true or false doesn't seem to change anything. It doesn't matter if I add a style={{width: x'}} cause it gets overwritten with the fixed px width value set by the component.

from react-select2-wrapper.

rkit avatar rkit commented on June 27, 2024

@gazpachu Maybe it is better to create an issue in Select2? This component doesn't add any CSS styles.

from react-select2-wrapper.

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.