You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let targetLeft = targetDim && targetDim.left || bodyWidth / 2;
Since targetDim.left = 0 it equals false and will fallback to bodyWidth / 2 which you can also see in the console.logs in the attached screenshot (I clicked on the yellow highlighted div).
The text was updated successfully, but these errors were encountered:
davidruisinger
changed the title
bug: Popover not positioned correct with left: 0
bug: Popover not positioned correct with targetDim.left = 0
Jun 14, 2016
Type: bug
Ionic Version: 2.x
Platform: ios 9 browser
Steps to reproduce:
I check the source and I think this is because of this line (see: https://github.com/driftyco/ionic/blob/2.0/src/components/popover/popover.ts#L332)
Since targetDim.left = 0 it equals
false
and will fallback tobodyWidth / 2
which you can also see in the console.logs in the attached screenshot (I clicked on the yellow highlighted div).The text was updated successfully, but these errors were encountered: