angular-ui/ui-grid

[BUG]: RTL column menu wrong positioning

Open

#3,460 opened on May 9, 2015

View on GitHub
 (4 comments) (0 reactions) (0 assignees)JavaScript (5,395 stars) (2,496 forks)batch import
good first issuetype: bug

Description

Here's the plnkr: http://plnkr.co/edit/MAjaBO3Bpe3mf04JxWpo?p=preview Simply open one of the column menus and see it doesn't show in the right place.

Using this code in the repositionMenu function:

if (column.grid.isRTL()){
        left = positionData.left + positionData.parentLeft+ positionData.width;
}

Seems to fix this.

Contributor guide