File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -207,6 +207,12 @@ const Modal = React.createClass({
207
207
208
208
this . _containerIsOverflowing = container . scrollHeight > containerClientHeight ( container , this ) ;
209
209
210
+ this . _originalPadding = container . style . paddingRight ;
211
+
212
+ if ( this . _containerIsOverflowing ) {
213
+ container . style . paddingRight = parseInt ( this . _originalPadding || 0 , 10 ) + scrollbarSize + 'px' ;
214
+ }
215
+
210
216
if ( this . props . backdrop ) {
211
217
this . iosClickHack ( ) ;
212
218
}
@@ -237,6 +243,8 @@ const Modal = React.createClass({
237
243
238
244
let container = getContainer ( this ) ;
239
245
246
+ container . style . paddingRight = this . _originalPadding ;
247
+
240
248
container . className = container . className . replace ( / ? m o d a l - o p e n / , '' ) ;
241
249
242
250
this . restoreLastFocus ( ) ;
You can’t perform that action at this time.
0 commit comments