10

I am trying to set width of handsontable dropdown to be according to the lookup data width, not column width. How can this be achieved?

See picture below please. Dropdown is too narrow to fit lookup data. screenshot

husayt
  • 14,553
  • 8
  • 53
  • 81
  • this one is tricky. i'm looking for the answer as well since what i do now is not pretty and mainly involves looking at the elements involved and making their min-width larger – ZekeDroid Feb 14 '15 at 02:55
  • @ZekeDroid is this fix https://github.com/handsontable/handsontable/issues/2599 somehow related to the issue here, or maybe since february there is a better way to solve the problem above? Thanks – husayt Jul 07 '15 at 02:33
  • yup! that's the solution – ZekeDroid Jul 07 '15 at 14:30
  • so I guess we have to wait for ver. 16 to test this. Then looking forward to it. Thank you very much. – husayt Jul 07 '15 at 15:23
  • @ZekeDroid, can you put the answer in answer section so I can award you a bounty. Thanks – husayt Jul 13 '15 at 14:07

2 Answers2

4

https://github.com/handsontable/handsontable/issues/2599

Github has a section on this.

Add the trimDropdown property. By default, this property is set to true. If you set it to false, this should accomplish what you need to do.

Constuntine
  • 498
  • 2
  • 16
  • While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes. – Logan Wayne Jul 14 '15 at 00:27
  • Apologies. I'll amend my answer. – Constuntine Jul 14 '15 at 12:04
2

Yes, the Github fix on 0.16 will include this solution. It's actually really nice, I'm using it already.

ZekeDroid
  • 7,089
  • 5
  • 33
  • 59
  • 1
    While 0.16 is supposed to offer a solution, the solution is not working. I have raised an [issue](https://github.com/handsontable/handsontable/issues/2599) and looking forward for a fix. – husayt Jul 15 '15 at 01:28
  • I confirmed today they are still working on the issue so that is good. I just thought people on here would want to know. I've been patiently waiting. [HERE](https://github.com/handsontable/handsontable/issues/2599#issuecomment-134619917) is the updated issue conversation. – jaredbaszler Aug 25 '15 at 15:32
  • There has been update that this will be fixed on the next release of HandsOnTable. Check link in previous comment. – jaredbaszler Sep 03 '15 at 22:18