fix(context-menu): updated context menu arrow left position calculation... #1268
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
to take into account IE limitations
Please read and mark the following check list before creating a pull request:
Short description of what this resolves:
According to #973 the white part of the arrow is misplaced on IE. That is because the
left
property value upon rendering becomes something likecalc(50% - calc(11px - 2px))
. IE does not support this style and the calculation is now changed to becomecalc(50% - (11px - 2px))
.Two extra things to note:
calc(50% - 11px - 2px)
but for some very weird reason the result of that is incorrect (meaning the number of pixels is incorrect and the white part of the arrow is still misplacedmenu-item
text is 0