Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

Commit

Permalink
fix(select): fix menu positioning inside fixed elements
Browse files Browse the repository at this point in the history
references #3218
  • Loading branch information
rschmukler committed Jun 28, 2015
1 parent ddfe523 commit 044dbdc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/menu/menu-interim-element.js
Original file line number Diff line number Diff line change
Expand Up @@ -271,8 +271,8 @@ function MenuProvider($$interimElementProvider) {

var bounds = {
left: boundryNodeRect.left + MENU_EDGE_MARGIN,
top: boundryNodeRect.top + MENU_EDGE_MARGIN,
bottom: boundryNodeRect.bottom - MENU_EDGE_MARGIN,
top: Math.max(boundryNodeRect.top, 0) + MENU_EDGE_MARGIN,
bottom: Math.max(boundryNodeRect.bottom, Math.max(boundryNodeRect.top, 0) + boundryNodeRect.height) - MENU_EDGE_MARGIN,
right: boundryNodeRect.right - MENU_EDGE_MARGIN
};

Expand Down

0 comments on commit 044dbdc

Please sign in to comment.