[Modal] long - bodyMargin adds unecessary margin-right #749
-
Help WantedModal Dimmer adds unecessary ProblemWhen the Dimmer appears the bodyMargin function inside |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
This is a wanted behavior to avoid the hard visual movement of the body and modal content when a scrollbar appears invented by #468 . The margin-right value should be set/calculated dynamically, so in case there is no scrollbar set when the page dimmer opens for a modal, the margin-right should be 0, thus not having any visual negative side effect. Could you please provide a jsfiddle for your case where this behavior is disturbing? |
Beta Was this translation helpful? Give feedback.
-
Thanks for the quick reply. Ok now i understand this, thanks to #468. We got a bad css rule that was inheriting the overflow to the body and broke it, now everything is working fine thanks! |
Beta Was this translation helpful? Give feedback.
This is a wanted behavior to avoid the hard visual movement of the body and modal content when a scrollbar appears invented by #468 .
The margin-right value should be set/calculated dynamically, so in case there is no scrollbar set when the page dimmer opens for a modal, the margin-right should be 0, thus not having any visual negative side effect.
Could you please provide a jsfiddle for your case where this behavior is disturbing?