0

I have created a custom textfield which can also show trigger icons before the input field.

However, it seems I am missing something important, because now the viewport does no longer resize when the browser window is resized.

I have made a fiddle that exhibits the problem:

https://fiddle.sencha.com/#view/editor&fiddle/299f

Alexander
  • 19,906
  • 19
  • 75
  • 162
  • I don't have a solution, but here is a hint that maybe will help you. If you comment the 30 and 41 lines in [this fiddle](https://fiddle.sencha.com/#view/editor&fiddle/299i) (an empty `for in` statement), it will work. This is really, really odd – scebotari66 Nov 06 '17 at 08:51
  • @scebotari66 Yes, in fact it's just the `Trigger.create` line, but that's exactly the part [which I copied from the original triggers code](http://docs.sencha.com/extjs/6.2.1/classic/src/Text.js.html#line788). – Alexander Nov 06 '17 at 09:56

1 Answers1

1

You have introduced a global id property in your applyIcons function. It's likely clobbering some local variable elsewhere.

Evan Trimboli
  • 29,900
  • 6
  • 45
  • 66