Opened 16 months ago

#19046 new defect

Open Dropdown Menu of Scrolling Tab Container position is wrong when resizing

Reported by: Michael Schall Owned by:
Priority: undecided Milestone: tbd
Component: Dijit Version: 1.10.8
Keywords: Cc:
Blocked By: Blocking:

Description

Dropdown menu of tabs on a Top Scrolling Tab Container does not position itself correctly in IE or Firefox when the screen is resized.

  1. Open following link in IE or Firefox: http://jsfiddle.net/nathanF/6vm33jgq/
  2. Resize screen so scrolling tab controls show up
  3. Open tab list on far right of tab list
  4. Without closing tab list menu, resize the browser window until scrolling tab controls go away.

Notice the menu moves to the far left and becomes small.

Suggestion is to just close the menu if it is open during resize to match what happens if you click elsewhere on the document.

Patch:

  • ScrollingTabController.js

     
    184184                        var enable = this._enableBtn(this._contentBox.w);
    185185                        this._buttons.style("display", enable ? "" : "none");
    186186
     187                        // close menu if it is open
     188                        if (this._menuBtn && this._menuBtn.get("_opened")) {
     189                                this._menuBtn.closeDropDown(false);
     190                        }
     191
    187192                        // Position and size the navigation buttons and the tablist
    188193                        this._leftBtn.region = "left";
    189194                        this._rightBtn.region = "right";

Change History (0)

Note: See TracTickets for help on using tickets.