1 Reply Latest reply on Jan 23, 2008 11:39 AM by Peter deHaan

    ComboBox with Horizontal Scroll

    Raanan_Zvi Level 1
      I need to use a combo box with long text items but the combo box should be small. Currently the combo box don't support this. If I set the width of the combo box to be smaller then the items text, the text get trancated, without any horizontal scroll capability.
      I inherited from combo box and override those methods:

      override public function open():void {
      dropdown.horizontalScrollPolicy = ScrollPolicy.ON;
      super.open();
      }

      override protected function downArrowButton_buttonDownHandler(event:FlexEvent):void
      {
      dropdown.horizontalScrollPolicy = ScrollPolicy.ON;
      super.downArrowButton_buttonDownHandler(event);
      }

      It's pretty ugly implementation but it kinda works. For some reason, for very long text even the horizontal scroll doesn't help.

      It would be great to have a support for horizontal scrolling in the original combo box.