File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Top Open diff view settings Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Top Open diff view settings Original file line number Diff line number Diff line change @@ -207,6 +207,12 @@ const Modal = React.createClass({
207207
208208 this . _containerIsOverflowing = container . scrollHeight > containerClientHeight ( container , this ) ;
209209
210+ this . _originalPadding = container . style . paddingRight ;
211+
212+ if ( this . _containerIsOverflowing ) {
213+ container . style . paddingRight = parseInt ( this . _originalPadding || 0 , 10 ) + scrollbarSize + 'px' ;
214+ }
215+
210216 if ( this . props . backdrop ) {
211217 this . iosClickHack ( ) ;
212218 }
@@ -237,6 +243,8 @@ const Modal = React.createClass({
237243
238244 let container = getContainer ( this ) ;
239245
246+ container . style . paddingRight = this . _originalPadding ;
247+
240248 container . className = container . className . replace ( / ? m o d a l - o p e n / , '' ) ;
241249
242250 this . restoreLastFocus ( ) ;
You can’t perform that action at this time.
0 commit comments